2020-05-20 20:05:33 +03:00
|
|
|
function _tide_item_context
|
2020-12-26 19:42:21 +03:00
|
|
|
if set -q SSH_TTY
|
2021-10-15 04:09:55 +03:00
|
|
|
tide_context_color=$tide_context_color_ssh _tide_print_item context $USER@$hostname
|
2021-02-23 01:23:52 +03:00
|
|
|
else if contains -- $USER root toor Administrator
|
2021-10-15 04:09:55 +03:00
|
|
|
tide_context_color=$tide_context_color_root _tide_print_item context $USER@$hostname
|
2021-03-02 20:46:40 +03:00
|
|
|
else if test "$tide_context_always_display" = true
|
2021-10-15 04:09:55 +03:00
|
|
|
tide_context_color=$tide_context_color_default _tide_print_item context $USER@$hostname
|
2020-05-13 22:46:42 +03:00
|
|
|
end
|
2021-03-02 20:46:40 +03:00
|
|
|
end
|