Add custom fish prompt
This commit is contained in:
parent
c423838e4d
commit
93326b3a9a
1 changed files with 7 additions and 0 deletions
7
fish_prompt.fish
Normal file
7
fish_prompt.fish
Normal 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
|
Reference in a new issue