fish-config/functions/fish_prompt.fish
wn 9b7b27c72d
First commit
First commit after delete an `abbr` related to restic.
And add 2 envs related to restic.
2024-01-08 19:34:25 +08:00

24 lines
389 B
Fish

function fish_prompt --description 'Write out the prompt'
set -l last_status $status
prompt_login
echo -n ':'
# PWD
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
__terlar_git_prompt
fish_hg_prompt
echo
if not test $last_status -eq 0
set_color $fish_color_error
end
echo -n '➤ '
set_color normal
end