Start session: tmux new
Restore session: tmux attach Restore session nember: tmux attach 2
Listing: Ctrl+B Exit q
Scroll: Ctrl+b -> [ -> Arrow or Page Up Page Down Exit - Esc
mkdir ~/.config/tmux mkdir ~/.config/tmux/plugins
mkdir -p ~/.config/tmux/plugins && git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
Config: ~/.config/tmux/tmux.conf
unbind-key -a -T root
set -g pane-border-lines "double"
set -g base-index 1 setw -g pane-base-index 1 set -g renumber-windows on
setw -g mode-keys vi
set -g mouse off
set -s escape-time 0
set -g history-limit 2000
bind -n M-r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!" bind -n M-s choose-tree -s
bind -n M-1 select-window -t 1 bind -n M-2 select-window -t 2 bind -n M-3 select-window -t 3 bind -n M-4 select-window -t 4 bind -n M-5 select-window -t 5 bind -n M-6 select-window -t 6 bind -n M-7 select-window -t 7 bind -n M-8 select-window -t 8 bind -n M-9 select-window -t 9
bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D
bind -n M-S-Left resize-pane -L 5 bind -n M-S-Right resize-pane -R 5 bind -n M-S-Up resize-pane -U 3 bind -n M-S-Down resize-pane -D 3
bind -n M-h split-window -v bind -n M-v split-window -h
bind -n M-Enter new-window bind -n M-c kill-pane bind -n M-q kill-window bind -n M-d detach bind -n M-Q confirm-before -p "Kill entire session? (y/n)" kill-session
bind -T copy-mode-vi v send -X begin-selection bind -T copy-mode-vi y send -X copy-pipe-and-cancel "wl-copy || xclip -in -selection clipboard" bind -n M-/ copy-mode \; command-prompt -p "(search down)" "send -X search-forward '%%%'" bind -n M-? copy-mode \; command-prompt -p "(search up)" "send -X search-backward '%%%'"
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'egel/tmux-gruvbox' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' set -g @continuum-restore 'on' set -g @continuum-save-interval '15' run '~/.config/tmux/plugins/tpm/tpm'
Install plugins from config:
~/.config/tmux/plugins/tpm/bin/install_plugins
Alt + R - reload config
tmux
Restart config: tmux kill-server tmux