mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 21:58:39 +08:00

This reverts commit 233c4436943fb56edf6db44b932221107b37fad1. See discussion in https://github.com/fish-shell/fish-shell/pull/2489
10 lines
485 B
Fish
10 lines
485 B
Fish
# 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
|