Only connect to tmux if we connecting through ssh
This commit is contained in:
parent
21cb44ba7e
commit
85bd8a5c65
1 changed files with 1 additions and 1 deletions
2
.zshrc
2
.zshrc
|
@ -41,7 +41,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Attach to a tmux session on startup
|
# Attach to a tmux session on startup
|
||||||
if [ -z "$TMUX" ]; then
|
if [ -z "$TMUX" ] && [ -n "$SSH_CLIENT" ]; then
|
||||||
tmux attach -t Default || tmux new -s Default
|
tmux attach -t Default || tmux new -s Default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue