Start a new session
tmux new -s NewSessionExit session
tmux detachList sessions
tmux lsGo back into session
tmux attach -t NewSessionShow all available options
tmux show-options -gShow all available shortcuts
tmux list-keysShow all available commands
tmux list-commandsStart fresh
tmux kill-server && rm -rf /tmp/tmux-*Enable plugins
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpmCTRL + <Space>Prefix + cPrefix + numberPrefix + n/pPrefix + wPrefix + ,Prefix + $Prefix + sPrefix + CTRL + sPrefix + dPrefix + CTRL + rPrefix + IPrefix + "Prefix + %Prefix + arrow keysPrefix + xPrefix + ALT + arrow keysAdd this to you .zshrc to always work in a Tmux session:
# Always work in a tmux session if Tmux is installed
if which tmux 2>&1 >/dev/null; then
if [ $TERM != "screen-256color" ] && [ $TERM != "screen" ]; then
tmux attach -t default || tmux new -s default; exit
fi
fi