Add fish config
This commit is contained in:
parent
c5a1b43a04
commit
bff3bbf87d
6 changed files with 117 additions and 0 deletions
17
config/fish/functions/fish_right_prompt.fish
Normal file
17
config/fish/functions/fish_right_prompt.fish
Normal file
|
@ -0,0 +1,17 @@
|
|||
# vim: se ts=4:
|
||||
|
||||
function fish_right_prompt --description 'Write out the right prompt'
|
||||
set -l last_status $status
|
||||
|
||||
if [ (count (jobs)) -gt 0 ]
|
||||
set_color $fish_color_jobs
|
||||
echo -n " "(count (jobs))
|
||||
end
|
||||
|
||||
if [ $last_status != 0 ]
|
||||
set_color $fish_color_status
|
||||
echo -n " $last_status"
|
||||
end
|
||||
|
||||
echo -n " "
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue