-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
48 lines (40 loc) · 1.46 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
48
unbind C-b
set -g mouse on
set -g prefix ^Space
set -g base-index 1
set -g renumber-windows on
set -g default-terminal "xterm-256color"
set -g status-bg colour240
set -g status-fg colour110
set -g word-separators " /"
set -g history-limit 20000
set -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]#W#[fg=grey,dim]#F'
set -g window-status-current-format '#[bg=blue,fg=cyan,bold]#I#[bg=blue,fg=white]:#[fg=colour230]#W#[fg=dim]#F'
set -s escape-time 0
set -g visual-activity on
bind e split-window -h \; send-keys "vim ~/.tmux.conf; and exit" C-m \; source-file ~/.tmux.conf
bind r source-file ~/.tmux.conf \; display "RELOAD"
bind c new-window -c "#{pane_current_path}"
bind S swap-window -t 1
bind Space last-window
bind ^Space last-window
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind \; join-pane -t 1
bind \\ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind = select-layout even-vertical
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
bind M set -g mouse on
set -g mode-keys vi
bind -T copy-mode-vi 'v' send-keys -X begin-selection
bind -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'pbcopy'
set -g @scroll-speed-num-lines-per-scroll 1
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'