-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
47 lines (37 loc) · 1.03 KB
/
.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
38
39
40
41
42
43
44
45
46
47
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# reload config file
bind r source-file $HOME/.tmux.conf
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# split panes
bind v split-window -h
bind s split-window -v
unbind '"'
unbind %
# vim-like pane resizing
bind -r C-K resize-pane -U 10
bind -r C-J resize-pane -D 10
bind -r C-H resize-pane -L 10
bind -r C-L resize-pane -R 10
# don't rename windows automatically
set-option -g allow-rename off
# use vim keybindings in copy mode
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# set clipboard
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# toggles tmux bar on/off
bind-key -n F12 set status
# bar color
set -g status-bg black
set -g status-fg white