[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.
This commit is contained in:
Eryn Wells 2022-11-02 10:41:09 -07:00
parent 247a27cd78
commit adfc594420

View file

@ -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=''