Skip to content

Commit 5b6710b

Browse files
committed
bashrc: Fixup "exec zsh when connecting via SSH"
1 parent c3848fb commit 5b6710b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Or: [[ $- != *i* ]] && return
55

66
# If we are connecting via SSH, exec ZSH
7-
if [[ -z ${SSH_CONNECTION+x} && -x "/usr/bin/zsh" ]]; then
7+
if [[ -n ${SSH_CONNECTION+x} && -x "/usr/bin/zsh" ]]; then
88
exec zsh
99
fi
1010

0 commit comments

Comments
 (0)