-
Notifications
You must be signed in to change notification settings - Fork 14
/
tmux.conf.tlon
198 lines (151 loc) · 5.42 KB
/
tmux.conf.tlon
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 5000
# use vim key bindings
setw -g mode-keys vi
# disable mouse
# setw -g mode-mouse off
# Keep window name fixed
set-option -g allow-rename off
# decrease command delay (increases vim responsiveness)
set -sg escape-time 1
# increase repeat time for repeatable commands
set -g repeat-time 1000
# start window index at 1
set -g base-index 1
# start pane index at 1
setw -g pane-base-index 1
# highlight window when it has new activity
setw -g monitor-activity on
set -g visual-activity off
# re-number windows when one is closed
set -g renumber-windows on
# enable pbcopy and pbpaste
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/blob/master/README.md
# set-option -g default-command "reattach-to-user-namespace -l zsh"
###########################
# Key Bindings
###########################
# CH : tmux prefix
# unbind C-b
# set -g prefix C-j
# JM : Ctrl-a is the new prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# copy with 'enter' or 'y' and send to mac os clipboard: http://goo.gl/2Bfn8
# unbind -t vi-copy Enter
# bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# create 'v' alias for selecting text
# bind-key -t vi-copy v begin-selection
# paste
unbind C-p
bind C-p paste-buffer
# window splitting
unbind %
bind \\ split-window -h
unbind '"'
bind - split-window -v
# quickly switch panes
#unbind ^J
#bind ^J select-pane -t :.+
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
###########################
# Status Bar
###########################
# enable UTF-8 support in status bar
# set -g status-utf8 on
# set refresh interval for status bar
set -g status-interval 30
# # center the status bar
set -g status-justify left
# show session, window, pane in left status bar
set -g status-left-length 70
# set -g status-left '#[fg=green]#S#[fg=thistle] ➤#[default]'
# show hostname, date, time, and battery in right status bar
set -g status-right-length 130
# set-option -g status-right '#{prefix_highlight} | #{online_status} / ⇓ #{download_speed} / ⇑ #{upload_speed} | #{cpu_bg_color} CPU: #{cpu_percentage} #{cpu_icon} | %a %h-%d %H:%M'
###########################
# Colors
###########################
set -g @themepack 'powerline/default/cyan'
# ~~~~~~~~~~~~
# Modify the chosen theme with these status lines:
#
#
# set -g status-left "#[fg=colour232,bg=colour125,bold] #S #[fg=colour125,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour233,nobold]#{prefix_highlight}"
# set -g status-right "#[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] #{online_status} ⇓ #{download_speed} ⇑ #{upload_speed} | #{cpu_bg_color} CPU: #{cpu_percentage} #{cpu_icon} #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %a %h-%d %H:%M #[fg=colour245,bg=colour240]#[fg=colour232,bg=colour245,bold] #H "
#
# ~~~~~~~~~~~~
# # color status bar
# set -g status-bg colour235
# set -g status-fg white
# # highlight current window
# set-window-option -g window-status-current-fg colour016
# set-window-option -g window-status-current-bg colour028
# set-window-option -g window-status-current-attr bold
# # set color of active pane
# set -g pane-border-fg green
# set -g pane-border-bg black
# set -g pane-active-border-fg green
# set -g pane-active-border-bg black
set -g history-limit 10000
set-option -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# quick pane cycling
#bind -r C-h select-window -t :-
#bind -r C-l select-window -t :+
# In case you leave Control key pressed
bind -r C-h select-pane -L
bind -r C-l select-pane -R
bind -r C-j select-pane -D
bind -r C-k select-pane -U
# use vim keybindings in copy mode
setw -g mode-keys vi
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
set-option -g mouse on
# set -g visual-activity on
# set -g monitor-activity on
set -g @continuum-save-interval '5'
set -g @continuum-restore 'on'
set -g @urlview-key 'e' # "u" seems to be taken! :(
# List of plugins
# Supports `github_username/repo` or full git URLs
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-sensible"
set -g @plugin "tmux-plugins/tmux-yank"
set -g @plugin "tmux-plugins/tmux-copycat"
set -g @plugin "tmux-plugins/tmux-prefix-highlight"
set -g @plugin "tmux-plugins/tmux-pain-control"
# set -g @plugin "tmux-plugins/tmux-open"
# set -g @plugin "tmux-plugins/tmux-net-speed"
# set -g @plugin "tmux-plugins/tmux-sessionist"
# set -g @plugin "tmux-plugins/tmux-online-status"
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin "tmux-plugins/tmux-sidebar"
# set -g @plugin "tmux-plugins/tmux-cpu"
# set -g @plugin "tmux-plugins/tmux-urlview"
set -g @plugin "jimeh/tmux-themepack"
# set -g @plugin "thewtex/tmux-mem-cpu-load"
# set -g @plugin "tmux-plugins/tmux-battery"
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
# run-shell ~/.tmux/plugins/tpm/tpm
run ~/.tmux/plugins/tpm/tpm
run-shell ~/.tmux/plugins/tmux-urlview/urlview.tmux