tmux¶
Installation¶
Allow Notify in tmux¶
TPM¶
Install tpm
Autostart Session¶
~/.bashrc
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
fi
This command creates a tmux session called ssh_tmux if none exists, or reattaches to a already existing session with that name. In case your connection dropped or when you forgot a session weeks ago, every SSH login automatically brings you back to the tmux-ssh session you left behind.
What if I mess up and lock myself out somehow?¶
(You might also need --noprofile, depending on your setup)