-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
39 lines (28 loc) · 1002 Bytes
/
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
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm:colors=256'
set-option -g default-shell "${SHELL}"
set-option -g status-right '#(wifi) #(battery --tmux) [%Y-%m-%d(%a) %H:%M]'
## if you use windows or linux
set-option -g default-command ""
## mac
# set-option -g default-command "reattach-to-user-namespace -l bash"
set -g mouse on
set -g pane-base-index 1
set -g base-index 1
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind | split-window -h -c '#{pane_current_path}' # default: %
bind - split-window -v -c '#{pane_current_path}' # default: "
bind c new-window -c '#{pane_current_path}'
set-window-option -g mode-keys vi
# reload setting
unbind r
bind r source-file ~/.tmux.conf
set-option -g history-limit 10000
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"