mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-24 20:41:36 +03:00
13 lines
416 B
Fish
13 lines
416 B
Fish
function _tide_item_context
|
|
if set -q SSH_TTY
|
|
set_color $tide_context_ssh_color
|
|
printf '%s' $USER'@'$hostname
|
|
else if contains -- $USER root toor Administrator
|
|
set_color $tide_context_root_color
|
|
printf '%s' $USER'@'$hostname
|
|
else if test "$tide_context_always_display" = true
|
|
set_color $tide_context_default_color
|
|
printf '%s' $USER'@'$hostname
|
|
end
|
|
end
|