Skip to content

Commit

Permalink
Parameter expansion in _agkozak_is_ssh()
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Apr 19, 2018
1 parent 69cc717 commit 65a5c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agkozak-zsh-theme.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ setopt PROMPT_SUBST NO_PROMPT_BANG
# her username and hostname in inverse video.
############################################################
_agkozak_is_ssh() {
[[ -n "${SSH_CONNECTION-}${SSH_CLIENT}${SSH_TTY}" ]]
[[ -n "${SSH_CONNECTION-}${SSH_CLIENT-}${SSH_TTY-}" ]]
}

############################################################
Expand Down

0 comments on commit 65a5c24

Please sign in to comment.