aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools/web_config/sample_prompts/screen_savvy.fish
blob: 83c7db641d43bbc5356a2cce92e283c1e0de015d (plain)
1
2
3
4
5
6
7
8
9
# name: Screen Savvy
# author: Matthias
function fish_prompt -d "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