Fish: Changes
This commit is contained in:
parent
a9352f0784
commit
438d595a77
3 changed files with 13 additions and 66 deletions
7
fish/functions/fish_prompt.fish
Normal file
7
fish/functions/fish_prompt.fish
Normal file
|
@ -0,0 +1,7 @@
|
|||
function fish_prompt --description 'Write out the prompt'
|
||||
if test -z $WINDOW
|
||||
printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (hostname|cut -d . -f 1) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
|
||||
else
|
||||
printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (hostname|cut -d . -f 1) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue