From 04b78a0cbb6b339b7c8eb82d09f3c41aeed2d152 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Tue, 26 Nov 2024 07:17:05 -0800 Subject: [PATCH] hostname only in ssh --- fish_prompt.fish | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 1499aa7..4d6cc7a 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -92,9 +92,11 @@ function fish_right_prompt end function fish_prompt - __slavic_color_echo $__slavic_color_blue "󰖟 " - __slavic_color_echo $__slavic_color_white (prompt_hostname) - printf " " + if test -n "$SSH_CLIENT"; or test -n "$SSH_TTY" + __slavic_color_echo $__slavic_color_blue "󰖟 " + __slavic_color_echo $__slavic_color_white (prompt_hostname) + printf " " + end __slavic_color_echo $__slavic_color_purple (prompt_pwd) __slavic_git_status