forked from kunsi/dotfiles
fish: add fish prompt
This commit is contained in:
parent
ed1da0bc8a
commit
f75fa2dfef
1 changed files with 18 additions and 0 deletions
18
.config/fish/functions/fish_prompt.fish
Normal file
18
.config/fish/functions/fish_prompt.fish
Normal file
|
@ -0,0 +1,18 @@
|
|||
function fish_prompt --description 'Write out the prompt'
|
||||
set -l last_status $status
|
||||
|
||||
set_color $fish_color_cwd
|
||||
echo -n (pwd)
|
||||
set_color normal
|
||||
|
||||
__terlar_git_prompt
|
||||
|
||||
if not test $last_status -eq 0
|
||||
set_color $fish_color_error
|
||||
echo -n " [$status]"
|
||||
set_color normal
|
||||
end
|
||||
|
||||
echo -n '➤ '
|
||||
set_color normal
|
||||
end
|
Loading…
Reference in a new issue