dotfiles/fish/functions/fish_prompt.fish
Marcel Kapfer (mmk2410) 438d595a77 Fish: Changes
2016-12-14 09:45:28 +01:00

7 lines
456 B
Fish

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