blob: ad34183cb835746713027ef6515bf8166e38bd26 (
plain)
1
2
3
4
5
6
7
8
9
|
function fish_prompt
set cmdcount (math $cmdcount+1)
printf '[%d] ' $cmdcount
if test -d .git
printf '%s%s %s(%s)%s>: ' (set_color red) (pwd) (set_color blue) (git branch | grep "*" | awk -F" " '{print $2}') (set_color normal)
else
printf '%s%s%s>: ' (set_color red) (pwd) (set_color normal)
end
end
|