User:Mattx86/tmux config

From Alpine Linux
Revision as of 07:41, 25 January 2011 by Mattx86 (talk | contribs) (Created page with "The following is the <code>~/.tmux.conf</code> file I use: <pre> # Basic settings bind z source-file ~/.tmux.conf # Reload tmux config (Ctrl+b, z) set -g history-limit 1000 set...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The following is the ~/.tmux.conf file I use:

# Basic settings
bind z source-file ~/.tmux.conf		# Reload tmux config	(Ctrl+b, z)
set -g history-limit 1000
set-window-option -g mode-keys vi

# Window panes
unbind %
bind | split-window -h		# Split window horizontally	(Ctrl+b, |) (i.e., hold Ctrl, hit 'b', and then get the pipe character)
bind - split-window -v		# Split window vertically	(Ctrl+b, -) (i.e., hold Ctrl, hit 'b', and then hit the minus key)
bind-key C-u resize-pane -U	# Resize window up		(Ctrl+b, u) (i.e., hold Ctrl and alternate hitting 'b' and 'u')
bind-key C-d resize-pane -D	# Resize window down		(Ctrl+b, d) (similar)
bind-key C-l resize-pane -L	# Resize window left		(Ctrl+b, l) (similar)
bind-key C-r resize-pane -R	# Resize window right		(Ctrl+b, r) (similar)
set -g mouse-select-pane off
set -g pane-active-border-fg green
set -g pane-active-border-bg default

# Status bar
set -g status-bg black
set -g status-fg white
#set -g status-left '#[fg=green]#(whoami)#[default]@#[fg=yellow]#H#[default]'
set -g status-left ''
set -g status-left-length 0
set -g status-right-length 60
set -g status-right '#[fg=cyan]#(whoami)@#H#[default] #[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[bg=blue]%a %b %d, %H:%M#[default]'
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg green
set -g status-justify centre

# Remote Terminal: Window title
set-option -g set-titles on
set-option -g set-titles-string '#S:#I.#P #T'
set-window-option -g automatic-rename on

# Remote Terminal: Enable mouse scrolling from, e.g., gnome-terminal.
# The alternative is to enter tmux copy mode (Ctrl+b, [), and then use
# the PgUp/PgDn/Arrow keys.  When done, quit copy mode (q).
set -g terminal-overrides 'xterm*:smcup@:rmcup@'