-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
38 lines (31 loc) · 1.19 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
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C-h resize-pane -L 5
bind C-j resize-pane -D 5
bind C-k resize-pane -U 5
bind C-l resize-pane -R 5
bind J swap-pane -D
bind K swap-pane -U
bind P swap-window -t -1\; select-window -t -1
bind N swap-window -t +1\; select-window -t +1
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
unbind C-b
set -g prefix 'C-\'
bind 'C-\' send-prefix
set -g mouse on
set -g history-limit 262144
set-option -g display-time 4000
set-option -g allow-rename off
set -sg escape-time 10
# set-option -g default-shell /usr/bin/zsh
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
## update the TERM variable of terminal emulator when creating a new session or attaching a existing session
set -g update-environment 'DISPLAY WINDOWID XAUTHORITY TERM'
# status-left "[#{session_name}] "
set -g status-left-length 50
set -g status-left '#[reverse]#{host}#[noreverse] #{?client_prefix,#[bg=brightyellow]#[fg=black]*** PREFIX ***#[bg=default]#[fg=default],} [#S] '
set -g status-style 'bg=#516665,fg=#bce6e4'
# set -g status-left '#{?client_prefix,#[reverse]*** PREFIX ***#[noreverse],}[#S] '