diff --git a/zsh-autotmux/.zsh/99-autotmux.zsh b/zsh-autotmux/.zsh/99-autotmux.zsh new file mode 100644 index 0000000..4dee6ef --- /dev/null +++ b/zsh-autotmux/.zsh/99-autotmux.zsh @@ -0,0 +1,5 @@ +if [ -z "$TMUX" ]; then + if which tmux >/dev/null 2>&1; then + tmux -q has-session && exec tmux attach-session -d || exec tmux new-session + fi +fi