tide/functions/_tide_item_context.fish
2021-10-14 18:09:55 -07:00

10 lines
452 B
Fish

function _tide_item_context
if set -q SSH_TTY
tide_context_color=$tide_context_color_ssh _tide_print_item context $USER@$hostname
else if contains -- $USER root toor Administrator
tide_context_color=$tide_context_color_root _tide_print_item context $USER@$hostname
else if test "$tide_context_always_display" = true
tide_context_color=$tide_context_color_default _tide_print_item context $USER@$hostname
end
end