-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
50 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
bind r source-file ~/.tmux.conf
set -g prefix C-s
bind -n M-g new-session
bind -n M-l switch-client -n
bind -n M-h switch-client -p
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 6
bind -r J resize-pane -D 6
bind -r K resize-pane -U 6
bind -r L resize-pane -R 6
bind 'c' new-window -c "#{pane_current_path}"
bind 'v' split-window -hc "#{pane_current_path}"
bind 's' split-window -vc "#{pane_current_path}"
set-window-option -g mode-keys vi
bind-key y copy-mode
bind-key p paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi C-a send-keys -X start-of-line
bind-key -T copy-mode-vi C-e send-keys -X end-of-line
# mac only
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
set -g mouse on
set -g automatic-rename off
set -sg escape-time 1
set -g history-limit 100000
set-option -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm:colors=256'
set -g status-fg colour240
set -g status-bg black
set -g status-left '#[fg=colour37]#{?client_prefix,#[reverse],}#(whoami)@#(hostname)[#S] #[default]'
set -g status-left-length 90
set -g status-right '#[fg=colour247][%Y/%m/%d(%a)%H:%M]#[default]'
set -g status-right-length 90
set-option -g status-justify "centre"
setw -g automatic-rename on
set -g pane-active-border-fg colour33
set -g window-status-current-fg colour162
set -g window-status-current-bg black
set-option -g renumber-windows on
set-option -g default-command "reattach-to-user-namespace -l zsh"