-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
37 lines (30 loc) · 1006 Bytes
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# status bar colors etc
set-option -g status-bg black
set-option -g status-fg yellow
set-option -g status-interval 5
set-option -g visual-activity on
set-window-option -g monitor-activity on
set-window-option -g window-status-current-fg white
# copying
setw -g mode-keys vi
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection
# more recent tmux syntax:
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key 'k' copy-mode
bind-key 'j' paste
# cntrl left and right jump one word
set-window-option -g xterm-keys on
# command prefix
set -g prefix C-a
# start window indexing at one instead of zero
set -g base-index 0
unbind % # remove default binding since replacing
bind v split-window -h
bind h split-window -v
bind-key C-a last-window
bind-key space next-window
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"