tide/functions/_tide_item_context.fish

10 lines
458 B
Fish
Raw Normal View History

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-05-30 00:59:17 +03:00
tide_context_color=$tide_context_color_ssh _tide_print_item context $USER'@'$hostname
else if contains -- $USER root toor Administrator
2021-05-30 00:59:17 +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-05-30 00:59:17 +03:00
tide_context_color=$tide_context_color_default _tide_print_item context $USER'@'$hostname
end
2021-03-02 20:46:40 +03:00
end