mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 17:02:45 +08:00
parent
93d57bd73a
commit
b615534d8d
|
@ -1,14 +1,7 @@
|
|||
# name: Sorin
|
||||
# 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
|
||||
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 $USER = 'root'; and echo (set_color red)"#"
|
||||
|
|
Loading…
Reference in New Issue
Block a user