tide/functions/_tide_item_context.fish
2020-07-04 14:01:56 -07:00

9 lines
254 B
Fish

function _tide_item_context
if set -q SSH_TTY
set_color $tide_context_ssh_color
printf '%s' $USER'@'$hostname
else if test $USER = 'root'
set_color $tide_context_root_color
printf '%s' $USER'@'$hostname
end
end