mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-21 10:09:56 +01:00
End ssh session on tmux detach
This commit is contained in:
parent
ac3c53cda7
commit
37dc883e1e
1
zshrc
1
zshrc
@ -17,6 +17,7 @@ source "$HOME/.dotfiles/zsh/settings"
|
|||||||
#
|
#
|
||||||
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
|
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
|
||||||
tmux attach-session -t default || tmux new-session -s default
|
tmux attach-session -t default || tmux new-session -s default
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define platform
|
# Define platform
|
||||||
|
Loading…
Reference in New Issue
Block a user