2012-09-06 16:30:26 +08:00
|
|
|
# name: Screen Savvy
|
|
|
|
# author: Matthias
|
|
|
|
function fish_prompt -d "Write out the prompt"
|
|
|
|
if test -z $WINDOW
|
2016-10-24 06:02:14 +08:00
|
|
|
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)
|
2012-09-06 16:30:26 +08:00
|
|
|
else
|
2016-10-24 06:02:14 +08:00
|
|
|
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)
|
2012-09-06 16:30:26 +08:00
|
|
|
end
|
|
|
|
end
|