======================================= tmux notes ======================================= oeng@guido:~ $ echo "set -g mouse on" >> ~/.tmux.conf oeng@guido:~ $ tmux ctrl-b d # detach to shell ctrl-b c # create new window ctrl-b , # rename current window ctrl-b $ # rename current session ctrl-b & # close current window ctrl-b w # list windows ctrl-b p # previous window ctrl-b n # next window ctrl-b 0-9 # window number # list tmux windows oeng@guido:~ $ tmux ls # start tmux and attach session oeng@guido:~ $ tmux a # start tmux and attach session 1 oeng@guido:~ $ tmux a -t 1 # start tmux and attach session 1 window 1 oeng@guido:~ $ tmux a -t 1:1 # start tmux and create new session named irssi oeng@guido:~ $ tmux new -s irssi # start tmux and create new session named foo in a new window named bar oeng@guido:~ $ tmux new -s foo -n bar # kill tmux session named irssi oeng@guido:~ $ tmux kill-session -t irssi # kill all windows except the current oeng@guido:~ $ tmux kill-session -a # kill all windows except the one named irssi oeng@guido:~ $ tmux kill-session -a -t irssi