Ported Caret color
This commit is contained in:
parent
827ccf62fd
commit
9ff6e38871
1 changed files with 9 additions and 4 deletions
|
@ -1,10 +1,15 @@
|
|||
function __caret
|
||||
|
||||
function __caret_color
|
||||
if [ $USER = "root" ]
|
||||
echo -n "red"
|
||||
else
|
||||
echo -n "magenta"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function fish_prompt
|
||||
echo -s (set_color -o cyan)(whoami)@(hostname)
|
||||
echo '>'
|
||||
echo -s (set_color -o cyan)(whoami)(set_color normal)@(hostname| cut -d . -f 1)
|
||||
echo -s (set_color (__caret_color))'# '(set_color normal)
|
||||
end
|
||||
|
||||
function fish_right_prompt -d "Write out the right prompt"
|
||||
|
|
Loading…
Reference in a new issue