tide/functions/_tide_context.fish
2020-05-18 20:03:25 -07:00

9 lines
267 B
Fish

function _tide_context
if set -q SSH_TTY
set_color $tide_context_ssh_color
printf '%s ' $USER'@'(prompt_hostname)
else if test $USER = 'root'
set_color $tide_context_root_color
printf '%s ' $USER'@'(prompt_hostname)
end
end