Special thanks [ https://github.com/hendrikmi ]
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/tpm- Prefix:
CTRL + <Space> - Create new tmux window:
Prefix + c - Navigate to window:
Prefix + number - Cycle through window:
Prefix + n/p - See all windows:
Prefix + w - Rename window:
Prefix + , - Rename session:
Prefix + $ - Explore sessions:
Prefix + s - Save sessions:
Prefix + CTRL + s - Detach:
Prefix + d - Restore session:
Prefix + CTRL + r - Install plugins:
Prefix + I
Add 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