From a037afab9da6868e5cff69c25628b7e34088b0e8 Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sat, 12 Apr 2025 23:13:12 +0800 Subject: [PATCH] Fix: ssh color --- functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index d588411..dba4480 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -20,7 +20,7 @@ function fish_prompt --description 'Informative prompt' set cwd (string replace --regex "^$git_root" "($git_root_basename)" "$cwd") end set -l hostname_color (set_color brblue) - if test -n $SSH_CLIENT + if test -n "$SSH_CLIENT" set hostname_color (set_color magenta) end printf '[%s] %s%s@%s%s %s%s%s%s %s %s\n> ' (date "+%H:%M:%S") \