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") \