Fix context colors

This commit is contained in:
Ilan Cosman 2021-05-29 14:59:17 -07:00
parent 356e515ce9
commit 71ea357d5c

View File

@ -1,9 +1,9 @@
function _tide_item_context
if set -q SSH_TTY
tide_context_color_color=$tide_context_ssh _tide_print_item context $USER'@'$hostname
tide_context_color=$tide_context_color_ssh _tide_print_item context $USER'@'$hostname
else if contains -- $USER root toor Administrator
tide_context_color_color=$tide_context_root _tide_print_item context $USER'@'$hostname
tide_context_color=$tide_context_color_root _tide_print_item context $USER'@'$hostname
else if test "$tide_context_always_display" = true
tide_context_color_color=$tide_context_default _tide_print_item context $USER'@'$hostname
tide_context_color=$tide_context_color_default _tide_print_item context $USER'@'$hostname
end
end