-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
55 lines (41 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
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# !!! MOVED STYLE CONFIG TO .bashrc BECAUSE ENVIRONMENT VARIABLES AREN'T SOURCED HERE
# ALT+arrow to swtich panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
set -g status-left-length 60
# visual indication if something happens on some terminal
setw -g monitor-activity on
set -g visual-activity on
# mouse selection of panes. Default - ON
bind-key m set-option -g mouse \; display "Mouse: #{?mouse,ON,OFF}"
set -g mouse on
# rebind pane split to v(|)/h(-)
bind-key h split-window -v
bind-key v split-window -h
bind-key C-h split-window -v -c "#{pane_current_path}"
bind-key C-v split-window -h -c "#{pane_current_path}"
# allow for C-arrow(hold) to work for resizing
set -g repeat-time 550 # this must be greater than $gsettings get org.gnome.desktop.peripherals.keyboard delay
# fix for vim missing colors in tmux
set -g default-terminal "screen-256color"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# to restore sessions after reboot: https://andrewjamesjohnson.com/restoring-tmux-sessions/
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @resurrect-capture-pane-contents 'off'
# set -g @resurrect-strategy-vim 'session'
# set -g @resurrect-strategy-nvim 'session'
# set -g @continuum-restore 'on'
# set -g @continuum-boot 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'