1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-25 20:47:45 +01:00

zsh: adding auto tmux on ssh

This commit is contained in:
tiyn 2020-11-29 13:19:28 +00:00
parent cc77295aaa
commit 672e4a421e

View File

@ -142,4 +142,8 @@ source /usr/share/doc/pkgfile/command-not-found.zsh
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
tmux attack-session -t $USER || tmux new-session -s $USER
fi
pfetch