blob: 6c1731ffa590b55bb5e7d4533cfedfd7abb13767 (
plain)
1
2
3
4
5
6
7
8
9
|
function fish_prompt
printf '[%s@%s] ' (echo $USER) (cat /etc/hostname)
if test -d .git
printf '%s%s %s(%s)' (set_color red) (pwd) (set_color blue) (git branch | grep "*" | awk -F" " '{print $2}')
else
printf '%s%s' (set_color red) (pwd)
end
printf '%s>: ' (set_color normal)
end
|