mirror of https://tildegit.org/ben/dotfiles
21 lines
267 B
Fish
21 lines
267 B
Fish
|
function fish_right_prompt
|
||
|
if is_git
|
||
|
if is_git_dirty
|
||
|
set_color --underline
|
||
|
end
|
||
|
|
||
|
set_color yellow
|
||
|
|
||
|
if is_git_ahead
|
||
|
echo -n '^'
|
||
|
else
|
||
|
echo -n '='
|
||
|
end
|
||
|
echo -n ' '
|
||
|
|
||
|
echo -n (git_branch)
|
||
|
set_color normal
|
||
|
end
|
||
|
end
|
||
|
|