-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
47 lines (40 loc) · 1.87 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
# to reload: tmux source-file ~/.tmux.conf
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -sg escape-time 1
set-option -g base-index 1
setw -g pane-base-index 1
set -g status-interval 10 # redraw the status line every 10 seconds
bind c new-window -c "#{pane_current_path}" # new window, but keep cwd
bind | split-window -h -c "#{pane_current_path}" # split window vertically, keep cwd
bind - split-window -v -c "#{pane_current_path}" # split window horizontally, keep cwd
bind T swap-window -t 1 # swap window with previous window
bind b previous-window -t: # go to previous window; n already does next window
bind > swap-pane -D # swap current pane with next one
bind < swap-pane -U # swap current pane with last one
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
set-window-option -g mode-keys vi
# enable mouse mode for 2.1 and up
set -g mouse on
set -g default-terminal "screen-256color"
set-option -g default-shell /bin/zsh # set this to your actual shell, but you should be using zsh :)
set-option -g history-limit 50000 # large history
set-option -g allow-rename off # STOP RENAMING MY TABS
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @continuum-restore 'on'
set -g @continuum-save-internal '10' # set save interval to 10 minutes instead of default 15
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-capture-pane-contents 'on'
# 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'