-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
69 lines (61 loc) · 2.12 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
62
63
64
65
66
67
68
69
# Install tmux plug-in manager first(https://github.com/tmux-plugins/tpm)
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Key Binding --------------------{{{
# 前缀
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind r source-file ~/.tmux.conf \; display-message "Config Reloaded!"
unbind %
bind | split-window -h -c "#{pane_current_path}" # 使用|竖屏,方便分屏 使用当前路径
unbind '"'
bind - split-window -v -c "#{pane_current_path}" # 使用-横屏,方便分屏
# use vim mode to move panel
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind K clear-history
bind-key * list-clients
# }}}
# General settings --------------------{{{
setw -g mode-keys vi
set -g default-terminal "screen-256color" # use 256 colors
set -g display-time 400 # status line messages display
set -g history-limit 100000 # scrollback buffer n lines
set -g base-index 1
setw -g pane-base-index 1
# paste
# Option1: use reattch-to-user-namespace(brew install)
# Copy-paste integration
set -g set-clipboard on
# }}}
# Status bar --------------------{{{
set -g status-bg black
set -g status-fg white
set-option -g status-justify centre
set-option -g status-left '#[fg=cyan][#{session_name}]'
set-option -g status-left-length 25
set-option -g status-right '#[fg=white,bg=default]%H:%M #[default] #[fg=white]%Y-%m-%d%a'
# window
setw -g automatic-rename off
set-option -g allow-rename off
set-window-option -g window-status-fg brightblue
set-window-option -g window-status-bg default
set-window-option -g window-status-current-style fg='#333333',bg="#ff9966"
set-window-option -g clock-mode-colour black
set-window-option -g clock-mode-style 24
set-window-option -g monitor-activity on
set-window-option -g visual-bell off
set-window-option -g bell-action other
# bind-key c new-window -n 'shell'
# message text
set-option -g message-style fg=colour5
set-option -g message-style bg=colour232
# }}}
# panel --------------------{{{
set-option -g pane-border-fg colour13
set-option -g pane-active-border-fg colour9
set-option -g display-panes-active-colour blue
set-option -g display-panes-colour brightred
# }}}