This gist causes automatic connection to a running tmux session. On first connection a tmux session is created.
There are two parts:
- .zsh/rc/S01_tmuxify - this file is sourced as part of .zshrc (in my setup)
- .zsh/func/tmux0 - this is a zsh function that makes sure a tmux session is available and attaches to it
Here is the bash to do "tmuxify"