-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
49 lines (35 loc) · 1.3 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
49
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/block/cyan'
set -g default-shell /bin/zsh
set -g history-file ~/.tmux_history
setw -g mode-keys vi
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
# Bind | and - for pane splitting
bind | split-window -h
bind _ split-window -v
unbind '"'
unbind %
set -s escape-time 0
bind -n C-M-j select-pane -D \; display-panes
bind -n C-M-k select-pane -U \; display-panes
bind -n C-M-h select-pane -L \; display-panes
bind -n C-M-l select-pane -R \; display-panes
bind -n C-M-Down resize-pane -D 5
bind -n C-M-Up resize-pane -U 5
bind -n C-M-Left resize-pane -L 5
bind -n C-M-Right resize-pane -R 5
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Bind vim like selection and copy for tmux copy mode
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xsel -i --clipboard"
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
set-option -g default-shell /bin/zsh
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'