-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
60 lines (46 loc) · 1.41 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
# Default directory
# ~/.tmux/.tmux.conf
# Change default prefix C-b -> C-s
set -g prefix C-s
unbind C-b
bind C-s send-prefix
# Scroll history
set -g history-limit 10000
# Change default indexing
set -g base-index 1
setw -g pane-base-index 1
set-option -g renumber-windows on
# Change default escape time
set -g escape-time 20
# Change default selecting panes
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -D
bind -n M-k select-pane -U
# cheatsheet bind
bind-key -r i run-shell "tmux neww ~/cht.sh"
# Ensure window titles get renamed automatically.
setw -g automatic-rename
# Appearance
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -g status-left ''
set -g status-left-length 0
set -g status-right ''
set -g status-right-length 0
# Reload bind
bind r source-file ~/.tmux/.tmux.conf \; display "Reloaded!"
# tmux plugin repo
# https://github.com/tmux-plugins/tpm
# Press prefix-I to install plugins
# 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 @resurrect-strategy-vim 'session'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'