From c6d86f36edadcafb5a82af1fdedd5c4b988738c2 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Sat, 21 Mar 2020 21:37:42 -0500 Subject: [PATCH] fish: only display the right prompt over ssh --- fish/functions/fish_right_prompt.fish | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/fish/functions/fish_right_prompt.fish b/fish/functions/fish_right_prompt.fish index a70ee54..e83e657 100644 --- a/fish/functions/fish_right_prompt.fish +++ b/fish/functions/fish_right_prompt.fish @@ -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 + set_color $fish_color_host_remote + echo -n $hostname + set_color normal end - - set_color $color_host - echo -n $hostname - set_color normal end