User Tools

Site Tools


admin:tmux_gold

This is an old revision of the document!


Tmux sample config

This config will support:

  • resizing of tabs using mouse
  • clipboard copy using a ssh client, using Alt+Shift+MouseSelect
  • scroll buffer of 30000 lines

Few shortcuts: Ctrl+b (future referenced as ^b)

  • ^b+w : list available windows
  • ^b+1..9 : jump to window 1..9
  • ^b+c : create a new window
  • ^b+% : split window/pane in two horizontal panes
  • ^b+“ : split window/pane in two vertical panes
  • ^b+x : kill current(focused pane)
  • ^b+space : rotate panes in current window
  • ^b+:break-pane : create new window from current pane
  • ^b+:setw synchronize-panes : synchronize input for all panes in current window

"~/.tmux.conf" :

#Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
set -g mouse-select-pane on

# Allow mouse dragging to resize panes
set -g mouse-resize-pane on

# Allow mouse to select windows
set -g mouse-select-window on

# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
# (commented out because it disables cursor navigation in vim)
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"

# Scroll History
set -g history-limit 30000

# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on

# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50

#electp -t 0
#plitw -h -p 80
admin/tmux_gold.1435750236.txt.gz · Last modified: 2015/07/01 11:30 by shd

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki