Fix sorin prompt, remove fallback

Closes #2243
This commit is contained in:
Fabian Homborg 2015-08-16 22:49:52 +02:00
parent 93d57bd73a
commit b615534d8d

View File

@ -1,14 +1,7 @@
# name: Sorin # name: Sorin
# author: Ivan Tham <ivanthamjunhoe@gmail.com> # author: Ivan Tham <ivanthamjunhoe@gmail.com>
# If login shell, don't do anything
if status --is-login; and function fish_prompt; echo -n '% '; end; end
function fish_prompt function fish_prompt
if not set -q -g __prompt_sorin_functions-defined
set -g __prompt_sorin_functions-defined
end
test $SSH_TTY; and printf (set_color red)(whoami)(set_color white)'@'(set_color yellow)(hostname)' ' test $SSH_TTY; and printf (set_color red)(whoami)(set_color white)'@'(set_color yellow)(hostname)' '
test $USER = 'root'; and echo (set_color red)"#" test $USER = 'root'; and echo (set_color red)"#"