tide/functions/_lean_context.fish

9 lines
267 B
Fish
Raw Normal View History

function _lean_context
if set -q SSH_TTY
set_color $lean_context_ssh_color
2020-05-18 20:06:02 +03:00
printf '%s ' $USER'@'(prompt_hostname)
else if test $USER = 'root'
set_color $lean_context_root_color
2020-05-18 20:06:02 +03:00
printf '%s ' $USER'@'(prompt_hostname)
end
end