-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
56 lines (45 loc) · 1.37 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
# Settings
##########
set -g set-titles on
set -g set-titles-string "#T"
set -g default-terminal "screen-256color"
set -g history-limit 30000
set -gw xterm-keys on
setw -g mode-keys vi
setw -g mouse off
setw -g aggressive-resize on
# Screen-like binds and theme
source-file ~/.tmux/screen-keys.conf
source-file ~/.tmux/colors-solarized.conf
# Custom Binds
###############
bind-key r source-file ~/.tmux.conf \; display 'Config reloaded!'
bind-key R respawn-pane -k \; display 'Respawned Pane!'
bind-key b send-keys -R \; clear-history
bind-key e set-window-option synchronize-panes
bind-key & kill-session
# Swap with left or right
bind-key S-Left swap-window -t -1
bind-key S-Right swap-window -t +1
# Make the current window the first window
bind T swap-window -t 0
# Toggle mouse on with ^B M
bind M \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B m
bind m \
set -g mouse off \;\
display 'Mouse: OFF'
# Plugins
#########
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-open'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'