fish: only display the hostname over ssh
This commit is contained in:
parent
7f92cd6eea
commit
8b2ec9ef34
@ -2,6 +2,13 @@ function fish_prompt --description 'Write out the prompt'
|
||||
# Save status code for previous command
|
||||
set -l last_status $status
|
||||
|
||||
# If we're running via SSH, display the hostname
|
||||
if set -q SSH_TTY
|
||||
set_color $fish_color_host_remote
|
||||
echo -n "$hostname "
|
||||
set_color normal
|
||||
end
|
||||
|
||||
# Print working directory
|
||||
set_color $fish_color_cwd
|
||||
echo -n (prompt_pwd)
|
||||
|
@ -1,8 +0,0 @@
|
||||
function fish_right_prompt --description 'Write out the right prompt'
|
||||
# If we're running via SSH, display the hostname
|
||||
if set -q SSH_TTY
|
||||
set_color $fish_color_host_remote
|
||||
echo -n $hostname
|
||||
set_color normal
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user