mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
9 lines
263 B
Fish
9 lines
263 B
Fish
function _lean_context
|
|
if set -q SSH_TTY
|
|
set_color $lean_context_ssh_color
|
|
echo -n $USER'@'(prompt_hostname)' '
|
|
else if test $USER = 'root'
|
|
set_color $lean_context_root_color
|
|
echo -n $USER'@'(prompt_hostname)' '
|
|
end
|
|
end |