tide/functions/_tide_item_context.fish

9 lines
254 B
Fish
Raw Normal View History

2020-05-20 20:05:33 +03:00
function _tide_item_context
if set -q SSH_TTY
2020-05-19 06:03:25 +03:00
set_color $tide_context_ssh_color
2020-06-25 05:45:50 +03:00
printf '%s' $USER'@'$hostname
else if test $USER = 'root'
2020-05-19 06:03:25 +03:00
set_color $tide_context_root_color
2020-06-25 05:45:50 +03:00
printf '%s' $USER'@'$hostname
end
end