Add custom fish prompt

This commit is contained in:
Mylloon 2021-11-08 15:34:37 +01:00
parent c423838e4d
commit 93326b3a9a

7
fish_prompt.fish Normal file
View file

@ -0,0 +1,7 @@
function fish_prompt --description 'Screen Savvy prompt'
if test -z "$WINDOW"
printf '%s%s@%s%s%s%s%s> ' (set_color yellow) $USER (set_color purple) (prompt_hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
else
printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) $USER (set_color purple) (prompt_hostname) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
end
end