tide/functions/_lean_context.fish
2020-05-14 21:53:37 -07:00

9 lines
263 B
Fish

function _lean_context
if set -q SSH_TTY
set_color $lean_context_ssh_color
echo -n $USER'@'(prompt_hostname)' '
else if test $USER = 'root'
set_color $lean_context_root_color
echo -n $USER'@'(prompt_hostname)' '
end
end