398
edits
Changes
Undo revision 5782 by [[Special:Contributions/imported>Pew|imported>Pew]] ([[User talk:imported>Pew|talk]])
tmux is a BSD-licensed Terminal MUltipleXer. It allows users to run multiple "windows" through a single shell connection,and keep applications running when logged out. The default prefix for tmux is Ctl-b, and all other tmux commands are sentfollowing that prefix. Please read <code>$ man tmux</code> for more info on default keybindings and commands. == echarlie's vim-like config == <pre>set -g prefix C-fbind C-f send-prefixunbind C-b set -sg escape-time 1set -g base-index 1setw -g pane-base-index 1 #Mouse works as expected# set -g mode-mouse on# set -g mouse-select-pane on# set -g mouse-resize-pane on# set -g mouse-select-window on setw -g monitor-activity onset -g visual-activity on set -g mode-keys viset -g history-limit 10000 # y and p as in vimbind Escape copy-modeunbind pbind p paste-bufferbind -t vi-copy 'v' begin-selectionbind -t vi-copy 'y' copy-selectionbind -t vi-copy 'Space' halfpage-downbind -t vi-copy 'Bspace' halfpage-up # extra commands for interacting with the ICCCM clipboardbind C-c run "tmux save-buffer - | xclip -i -sel clipboard"bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" # easy-to-remember split pane commands#bind | split-window -h#bind - split-window -v#unbind '"'#unbind % # moving between panes with vim movement keysbind h select-pane -Lbind j select-pane -Dbind k select-pane -Ubind l select-pane -R # moving between windows with vim movement keysbind -r C-h select-window -t :-bind -r C-l select-window -t :+ # resize panes with vim movement keysbind -r H resize-pane -L 5bind -r J resize-pane -D 5bind -r K resize-pane -U 5bind -r L resize-pane -R 5set-option -g lock-command vlock</pre> [[Category:Scripts]][[Category:Howtos]][[Category:Pending deletionSoftware]]