From 56fbc04990fce7c2de77121708b29e346b02ed61 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 6 Sep 2013 16:12:49 +0200 Subject: [PATCH] Improve SSH if syntax --- pure.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pure.zsh b/pure.zsh index d50b7d4..897c777 100644 --- a/pure.zsh +++ b/pure.zsh @@ -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