summaryrefslogtreecommitdiff
path: root/functions/fish_right_prompt.fish
blob: 4fc17d1ba4193411d4e77706eab81ab0edaca8cc (plain)
1
2
3
4
5
6
7
8
9
10
function fish_right_prompt
	set stat $status

    printf "\e[38;5;244m%s\e[0m " (date +%H:%M)

	if test $stat -ne 0
		printf "\e[91m(%d) " $stat
	end
	printf "\e[37m%s\e[0m" (__fish_git_prompt "%s")
end