fish-shell/share/tools/web_config/sample_prompts/screen_savvy.fish

10 lines
490 B
Fish
Raw Normal View History

# name: Screen Savvy
# author: Matthias
function fish_prompt -d "Write out the prompt"
2016-11-02 02:19:45 +00:00
if test -z $WINDOW
printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (whoami) (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) (whoami) (set_color purple) (prompt_hostname) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
end
end