Make the prompt a bit prettier
This commit is contained in:
parent
2294550a10
commit
668a6d7d5a
1 changed files with 9 additions and 5 deletions
|
@ -18,24 +18,28 @@ set __fish_git_prompt_color_upstream_behind red
|
|||
|
||||
# Status Chars
|
||||
#set __fish_git_prompt_char_dirtystate '⚡'
|
||||
set __fish_git_prompt_char_dirtystate 'D'
|
||||
set __fish_git_prompt_char_dirtystate '+'
|
||||
|
||||
set __fish_git_prompt_char_stagedstate '→'
|
||||
set __fish_git_prompt_char_untrackedfiles '☡'
|
||||
set __fish_git_prompt_char_stashstate '↩'
|
||||
set __fish_git_prompt_char_upstream_ahead '+'
|
||||
set __fish_git_prompt_char_upstream_behind '-'
|
||||
set __fish_git_prompt_char_upstream_ahead '⇡ '
|
||||
set __fish_git_prompt_char_upstream_behind '⇣ '
|
||||
|
||||
|
||||
function fish_prompt
|
||||
echo
|
||||
|
||||
set last_status $status
|
||||
|
||||
set_color -o $fish_color_cwd
|
||||
printf '%s' (prompt_pwd)
|
||||
echo -n $PWD | sed -e "s,^$HOME,~,"
|
||||
set_color normal
|
||||
|
||||
printf '%s' (__fish_git_prompt)
|
||||
set_color normal
|
||||
|
||||
echo -en " "
|
||||
echo
|
||||
|
||||
echo -n "❯ "
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue