[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:
parent
247a27cd78
commit
adfc594420
1 changed files with 1 additions and 1 deletions
|
@ -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=''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue