Skip to content
Newer
Older
100644 40 lines (30 sloc) 1002 Bytes
3ef63fe @croaky Set tmux to use reattach-to-user-namespace
croaky authored
1 # improve colors
a639b11 @croaky Start tmux window numbers at 1
croaky authored
2 set -g default-terminal 'screen-256color'
dc4c65e @croaky use screen-256-color for tmux so that certain color schemes in vim lo…
croaky authored
3
16cae93 @croaky adding tmux.conf
croaky authored
4 # act like vim
5 setw -g mode-keys vi
6 bind h select-pane -L
7 bind j select-pane -D
8 bind k select-pane -U
9 bind l select-pane -R
10 bind-key -r C-h select-window -t :-
11 bind-key -r C-l select-window -t :+
12
87e72a9 @tute Use C-s as tmux prefix
tute authored
13 set -g prefix2 C-s
397312e @croaky Simplify tmux status bar
croaky authored
14
a639b11 @croaky Start tmux window numbers at 1
croaky authored
15 # start window numbers at 1 to match keyboard order with tmux window order
16 set -g base-index 1
c7255d3 @alkrauss48 Add extra option for base pane index for tmuxinator
alkrauss48 authored
17 set-window-option -g pane-base-index 1
a639b11 @croaky Start tmux window numbers at 1
croaky authored
18
d251e63 @croaky Renumber tmux windows after closing any of them
croaky authored
19 # renumber windows sequentially after closing any of them
20 set -g renumber-windows on
21
397312e @croaky Simplify tmux status bar
croaky authored
22 # soften status bar color from harsh green to light gray
23 set -g status-bg '#666666'
24 set -g status-fg '#aaaaaa'
25
26 # remove administrative debris (session name, hostname, time) in status bar
27 set -g status-left ''
28 set -g status-right ''
3ef486f @gylaz Increase tmux scrollback lines
gylaz authored
29
30 # increase scrollback lines
31 set -g history-limit 10000
830f4fe @nXqd Add shortcut to toggle between two most recent panes
nXqd authored
32
87e72a9 @tute Use C-s as tmux prefix
tute authored
33 # prefix -> back-one-character
34 bind-key C-b send-prefix
35 # prefix-2 -> forward-incremental-history-search
36 bind-key C-s send-prefix -2
b024bdc Allow for a local tmux.config file
Sterling Cobb authored
37
38 # Local config
39 if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'
Something went wrong with that request. Please try again.