fish: only display the right prompt over ssh

This commit is contained in:
Charles Gould 2020-03-21 21:37:42 -05:00
parent 6e8a17ca97
commit c6d86f36ed

View File

@ -1,11 +1,8 @@
function fish_right_prompt --description 'Write out the right prompt' function fish_right_prompt --description 'Write out the right prompt'
# If we're running via SSH, change the host color # If we're running via SSH, display the hostname
set --local color_host $fish_color_host
if set -q SSH_TTY if set -q SSH_TTY
set color_host $fish_color_host_remote set_color $fish_color_host_remote
end
set_color $color_host
echo -n $hostname echo -n $hostname
set_color normal set_color normal
end end
end