-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
63 lines (53 loc) · 1.76 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
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect' # save/load session
set -g @plugin 'tmux-plugins/tmux-continuum' # auto save/load session
set -g @continuum-restore 'on'
# Key bindings
# prefix + Ctrl-s - save
# prefix + Ctrl-r - restore
# prefix + I - fetch the plugin and source it
# Color
set-option -g default-terminal "screen-256color"
# Behavior
set -g escape-time 0
##### Options
set-option -g default-terminal "screen-256color"
set-option -g status-right "\"#H\" #(date +'%Y/%m/%d %H:%M:%S')"
set-option -g status-interval 1
set-option -g history-limit 5000
# set-option -gw mode-mouse on
# set-option -g mouse-utf8 on
# set-option -g mouse-resize-pane on
# set-option -g mouse-select-pane on
##### Keybind
unbind-key C-b
set -g prefix C-z
bind-key C-z send-prefix
set-window-option -g mode-keys vi
bind C-z send-keys C-z
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H select-pane -L
bind J select-pane -D
bind K select-pane -U
bind L select-pane -R
bind c new-window -c "#{pane_current_path}"
bind % split-window -hc "#{pane_current_path}"
bind '"' split-window -vc "#{pane_current_path}"
# Copy(Select Mode)
# bind -t vi-copy C-v rectangle-toggle
# bind -t vi-copy v begin-selection
# bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# unbind -t vi-copy Enter
# bind -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# set -g default-command "reattach-to-user-namespace -l /bin/bash"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'