diff --git a/zsh/.config/zsh/zshrc.local b/zsh/.config/zsh/zshrc.local index ed6d986..87a30a6 100644 --- a/zsh/.config/zsh/zshrc.local +++ b/zsh/.config/zsh/zshrc.local @@ -18,6 +18,11 @@ if command -v tmux &> /dev/null; then ssh-tmux(){ ssh -t "$@" "tmux attach || tmux new"; } + + # auto-start tmux + if [ -z "${TMUX}" ]; then + tmux -f ~/.config/tmux/tmux.conf + fi fi # rust/cargo