-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
77 lines (59 loc) · 1.78 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
76
77
# C-b is not acceptable -- Vim uses it
unbind C-b
set-option -g prefix C-a
bind-key C-a last-window
# set-option -g prefix 'C-\'
# bind-key 'C-\' last-window
# vim-style pane navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L
bind -r J resize-pane -D
bind -r K resize-pane -U
bind -r L resize-pane -R
bind-key v split-window -h -c "#{pane_current_path}"
bind-key s split-window -v -c "#{pane_current_path}"
# Clear pane in Tmux
bind-key m send-keys -R \; clear-history
# Start windows numbering at 1
set -g base-index 1
# Make pane numbering consistent with windows
setw -g pane-base-index 1
# Allows for faster key repetition
set -s escape-time 10
# Increase repeat timeout
set -sg repeat-time 600
# Make tmux colorful
set -g default-terminal "screen-256color"
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
# Activity Monitoring
set -g monitor-activity on
set -g visual-activity on
# Enable mouse scrolling
set -g mouse on
# Enable utf 8
setw -q -g utf8 on
# Boost history
set -g history-limit 10000
# Set terminal title
set -g set-titles on
# Copy mode
bind Enter copy-mode
# Mode vim
set-window-option -g mode-keys vi
# vi like copy paste behaviour
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
bind-key -Tcopy-mode-vi Escape send -X cancel
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
run '~/.tmux/plugins/tpm/tpm'
set -g @scroll-speed-num-lines-per-scroll 1