-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
75 lines (55 loc) · 1.76 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# TPM
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
# default color palette
set -g default-terminal "tmux-256color"
# iceberg color scheme
source-file ~/.tmux/iceberg.tmux.conf
# reload .tmux.conf
bind r source-file ~/.tmux.conf\; display "tmux conf reloaded"
# faster key repetition
set -s escape-time 0
# start numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# activating mouse mode
set -g mouse on
# no automatic renaming
set-option -g allow-rename off
# use vim mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'V' send -X rectangle-toggle
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Update default binding of 'Enter' to also use copy-pipe
unbind -Tcopy-mode-vi Enter
bind-key -Tcopy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Use escape to exit selection mode
bind-key -Tcopy-mode-vi Escape send -X cancel
# display tmux messages for 3 seconds
set -g display-time 2000
# useful when using "grouped sessions" and multi-monitor setup
# setw -g aggressive-resize on
# bind -n c-e send c-e
# moving between panes
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -D
bind -n M-k select-pane -U
# resizing panes by 5
bind -r c-n resize-pane -L 5
bind -r c-s resize-pane -R 5
bind -r c-j resize-pane -D 5
bind -r c-k resize-pane -U 5
# splitting windows
bind-key c-v split-window -h
bind-key c-h split-window -v
unbind '"'
unbind %
bind-key -n M-z resize-pane -Z