added new prompt updates

This commit is contained in:
2020-06-05 12:00:58 +02:00
parent 52f484f4f8
commit 9a3a5b82a5
3 changed files with 20 additions and 8 deletions

View File

@ -15,13 +15,13 @@ function fish_prompt
set -l branch (git::branch_name ^/dev/null)
set -l ref (git show-ref --head --abbrev | awk '{print substr($0,0,7)}' | sed -n 1p)
printf '%s ' \U1F6E0
echo -n -s (red)"("(off)
if git::is_stashed
echo -n -s (white)"^"(off)
end
printf '%s ' \U1F6E0
echo -n -s (red)"("(off)
if git::is_dirty
printf (white)"*"(off)
end