Search This Blog

2013-07-10

TMUX Config

Just a place to store my current tmux config should it ever be lost. Even though it's simplistic it's still useful

### Note: key meaning
### C- means ctrl-, so C-x is ctrl-x.
### M- means meta (generally left-alt or escape)-, so M-x is left-alt-x.

### Set the prefix to ^A.
### Note: the default prefix is Ctrl-b.
unbind C-b
set -g prefix ^A
bind a send-prefix

### Set the maximum number of lines held in window history.
set -g history-limit 50000

### date format: hostname weekday month day, hour:minute
set -g status-right '%Y-%m-%d %H:%M'

### resize panes like vim
### feel free to change the "5" to however many lines you want to resize by, only
### one at a time can be slow
#bind -r C-h resize-pane -L 5
#bind -r C-j resize-pane -D 5
#bind -r C-k resize-pane -U 5
#bind -r C-l resize-pane -R 5

### Reload tmux.conf configuration file
### Note: alternative way to reload the configuration file:
### Method 1: Run from command line: tmux source-file ~/.tmux.conf
### Method 2: In any tmux sessions: [prefix Ctrl-b] : source-file /usr/local/etc/tmux.conf
### Method 3: bind the source-file command with a key like following line, then you type: ctrl-b-r

bind-key + resize-pane -D 3
bind-key / resize-pane -L 3
bind-key - resize-pane -U 3
bind-key * resize-pane -R 3

No comments:

Post a Comment