From adfc594420ca8f225fbdc44ccff0b9162399b510 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 2 Nov 2022 10:41:09 -0700 Subject: [PATCH] [zsh] Get the hostname back Use != instead of -ne when checking $TERM_PROGRAM. This has been this way for years; I do not really understand why this is happening now. --- zsh/func/prompt_loquacious_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/func/prompt_loquacious_setup b/zsh/func/prompt_loquacious_setup index d2bba4e..14f3753 100644 --- a/zsh/func/prompt_loquacious_setup +++ b/zsh/func/prompt_loquacious_setup @@ -88,7 +88,7 @@ function set_prompt_info PS1_CWD="in %F{green}%~%f " PS1_STATUS=" %(?..%F{red}!%f)" - if [[ -n "$SSH_CONNECTION" && "$TERM_PROGRAM" -ne "tmux" ]]; then + if [[ -n "$SSH_CONNECTION" && "$TERM_PROGRAM" != "tmux" ]]; then PS1_HOST="at %F{red}%m%f " else PS1_HOST=''