tmux/screen = multiple terminals in one window + survive SSH disconnect.
tmux¶
tmux new -s work tmux attach -t work
Ctrl+b d=detach, c=window, %=vsplit, “=hsplit, z=zoom¶
Configuration¶
~/.tmux.conf¶
set -g prefix C-a set -g mouse on set -g base-index 1 set -g history-limit 50000
screen¶
screen -S work screen -r work
Ctrl+a d=detach, c=window, n/p=next/previous¶
tmux for everyday¶
Protection against SSH outage. 10 shortcuts is enough.
tmuxscreenterminal