Improve SSH if syntax

This commit is contained in:
Sindre Sorhus
2013-09-06 16:12:49 +02:00
parent 615aef761c
commit 56fbc04990

View File

@@ -33,7 +33,7 @@
setopt prompt_subst
# 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 '
fi