-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
90 lines (72 loc) · 2.15 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
78
79
80
81
82
83
84
85
86
87
88
89
90
new-session -n $HOST
## Options
set -g default-terminal "screen-256color"
set -g base-index 1
set -g pane-base-index 1
set -g set-titles on
set -g status-keys vi
set -g bell-on-alert off
set -g visual-bell on
# Faster Command Sequences
set -s escape-time 0
set -g display-panes-time 3000
## copy environment variables
set -g update-environment -r
# Source: https://github.com/Casecommons/casecommons_workstation/blob/master/templates/default/dot_tmux.conf.erb
# https://github.com/Casecommons/vim-config/blob/master/init/tmux.vim
set-option -g terminal-overrides '*88col*:colors=88,*256col*:colors=256,xterm*:XT:Ms=\E]50;CopyToClipboard=general\007\E]50;EndCopy\007:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E]50;CursorShape=%?%p1%{3}%<%t%{0}%e%p1%{2}%-%;%d\007'
# Window options
setw -g mode-keys vi # vi key
setw -g utf8 on
setw -g xterm-keys on
setw -g automatic-rename on
setw -g monitor-activity on
setw -g aggressive-resize on
# Style
set -g status-bg default
set -g status-fg default
set -g status-left ""
set -g status-right "#[fg=green]#H[#(wemux status_users)]"
set -g status-position bottom
set -g pane-active-border-bg default
set -g pane-active-border-fg blue
set -g pane-border-bg default
set -g pane-border-fg white
set -g display-panes-active-colour red
set -g display-panes-colour blue
# Highlight active window
setw -g window-status-current-bg red
setw -g window-status-current-fg default
# remap prefix to Control + a
unbind C-b
set -g prefix C-a
bind a send-prefix
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# copy mode
unbind p
bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
bind-key -T copy-mode-vi 'y' send -X copy-selection
## # quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# zoom
unbind ^M
bind ^M new-window -d -n zoom 'tmux-zoom'
# switch panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
## # splits
bind s split-window -v
bind v split-window -h
## # resize panes
bind ^L resize-pane -R 5
bind ^J resize-pane -D 5
bind ^K resize-pane -U 5
bind ^H resize-pane -L 5