-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtmux.conf
133 lines (103 loc) · 3.57 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#
# modified by: Larry Lv <[email protected]>
#
#-- base --#
set -s escape-time 0
set -g display-time 3000
set -g history-limit 65535
set -g base-index 0
set -g default-terminal "screen-256color"
set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256,screen*:colors=256"
if-shell "[[ -f /usr/local/bin/bash ]]" \
"set -g default-shell /usr/local/bin/bash"
if-shell "[[ -f /opt/homebrew/bin/bash ]]" \
"set -g default-shell /opt/homebrew/bin/bash"
#-- bindkeys --#
set -g prefix ^a
unbind ^b
bind a send-prefix
unbind '"'
bind - splitw -v -c "#{pane_current_path}"
unbind %
bind | splitw -h -c "#{pane_current_path}"
bind c neww -c "#{pane_current_path}"
bind p previous-window
bind n next-window
bind k selectp -U
bind j selectp -D
bind h selectp -L
bind l selectp -R
bind ^k resizep -U 10
bind ^j resizep -D 10
bind ^h resizep -L 10
bind ^l resizep -R 10
bind ^u swapp -U
bind ^d swapp -D
bind o choose-session -Oname
bind u choose-window
bind '\' last
bind q killp
bind ` splitw htop
bind m command-prompt "splitw 'exec man %%'"
bind / command-prompt "splitw '%%'"
bind r source-file ~/.tmux.conf \; display-message " Config reloaded..".
# Set Copy-Mode settings
bind Escape copy-mode
bind [ copy-mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection
bind -T copy-mode-vi V send-keys -X rectangle-toggle
bind ] paste-buffer
#-- statusbar --#
set -g status-interval 5
#set -g visual-activity on
#setw -g monitor-activity on
set -g status-keys vi
setw -g mode-keys vi
# disable sound bell
set -g bell-action none
# disable visual bell
set -g visual-bell off
set -g status-justify centre
set -g status-left "#[fg=cyan]:#[fg=blue]: #[fg=red][ #[fg=magenta]#[fg=green]#S #[fg=red]]#[default]"
set -g status-right "#[fg=red][ #[fg=magenta]%H:%M #[fg=red]] #[fg=blue]:#[fg=cyan]:#[default]"
set -g status-left-length 32
set -g status-right-length 32
setw -g window-status-format '#[fg=blue,bold]#I #W#[default] '
setw -g window-status-current-format '#[fg=blue,bold,reverse]#I #W#[default] '
set-option -g set-titles off
set-option -g set-titles-string '#W(#P) - #T'
set-window-option -g automatic-rename off
set-window-option -g pane-base-index 0
set-environment -gu RBENV_VERSION
set-environment -gu RBENV_DIR
set-environment -gu RBENV_GEMSET_ALREADY
set-environment -gu RBENV_HOOK_PATH
set-environment -gu RBENV_ROOT
# To prevent c-d existing from shell
set-environment -g 'IGNOREEOF' 3
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-style fg=colour136,bg=default #yellow and base02
# default window title colors
set-window-option -g window-status-style fg=colour244,bg=default #base0 and default
set-window-option -g window-status-current-style bright
# set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=colour166,bg=default #orange and default
#set-window-option -g window-status-current-style bright
# message text
set-option -g message-style fg=colour166,bg=colour235 #orange and base02
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
# set -g @plugin 'tmux-plugins/tmux-copycat'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'