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'
|
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
|
||||||
|
echo -n $hostname
|
||||||
|
set_color normal
|
||||||
end
|
end
|
||||||
|
|
||||||
set_color $color_host
|
|
||||||
echo -n $hostname
|
|
||||||
set_color normal
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user