Improve SSH if syntax
This commit is contained in:
2
pure.zsh
2
pure.zsh
@@ -33,7 +33,7 @@
|
|||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
|
|
||||||
# show username@host if logged in through SSH
|
# show username@host if logged in through SSH
|
||||||
if [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
|
if [[ $SSH_CLIENT != '' || $SSH_TTY != '' ]]; then
|
||||||
local username='%n@%m '
|
local username='%n@%m '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user