fish: only display the right prompt over ssh
This commit is contained in:
parent
6e8a17ca97
commit
c6d86f36ed
@ -1,11 +1,8 @@
|
||||
function fish_right_prompt --description 'Write out the right prompt'
|
||||
# If we're running via SSH, change the host color
|
||||
set --local color_host $fish_color_host
|
||||
# If we're running via SSH, display the hostname
|
||||
if set -q SSH_TTY
|
||||
set color_host $fish_color_host_remote
|
||||
end
|
||||
|
||||
set_color $color_host
|
||||
set_color $fish_color_host_remote
|
||||
echo -n $hostname
|
||||
set_color normal
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user