-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
61 lines (44 loc) · 1.6 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
# set default terminal
set -g default-terminal "xterm-256color"
# change history-limit
set -g history-limit 100000
# set default sjell
set -g default-shell /usr/local/bin/bash
# change the prefix to C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# reduce default tmux command delay
set -s escape-time 1
# set repeat-time to 0
set -sg repeat-time 0
# start numbering windows and panes from 1
set -g base-index 1
setw -g pane-base-index 1
# shortcut for reloading configuration changes
bind r source-file ~/.tmux.conf \; display "Configuration updated"
# easy splitting for windows
# set up so that new windows start in original directory,
# and split windows in current directory
#bind | split-window -h -c "#{pane_current_path}" # actually vertical split
#bind '"' split-window -v -c "#{pane_current_path}" # actually horizontal split
bind | split-pane -h -c "#{pane_current_path}" # actually vertical split
bind '"' split-pane -v -c "#{pane_current_path}" # actually horizontal split
# switch off mouse support
set -g mouse off
# centre the window listing
set -g status-justify centre
# enable activity alerts on other windows
set -g monitor-activity on
set -g visual-activity on
# enable automatic re-numbering of windows dynamically
set -g renumber-windows on
### plugins ####
## depends on the tmux plugin manager - ghttps://github.com/tmux-plugins/tpm
# save and restore sessions
set -g @plugun 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# save and restore vim/nvim sessions
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
run -b '~/.tmux/plugins/tpm/tpm'