-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
134 lines (106 loc) · 3.05 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# set the default terminal
set -g default-terminal "xterm"
#set -g default-terminal "screen-256color"
# modify the default bind key
unbind-key C-b
set-option -g prefix C-a
# use the vim keyboard mode
setw -g mode-keys vi
# detach the session
bind d detach
# all pane and window start by 1
set -g base-index 1
setw -g pane-base-index 1
# reload the configure file
bind r source-file ~/.tmux.conf
# Ctrl-a + a to the start of the line
bind-key a send-prefix
# split the window
unbind %
bind | split-window -h
unbind '"'
bind _ split-window -v
# enter the copy mode
unbind [
bind Escape copy-mode
## paste buffer
#unbind p
#bind p paste-buffer
## vim-like select and copy
#bind -t vi-copy 'v' begin-selection
#bind -t vi-copy 'y' copy-selection
##clipboard
#bind y run-shell "tmux show-buffer | xclip -sel clip -i" \; display-message "Copied tmux buffer to system clipboard"
# select pane in vim way
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize pane like vim
bind < resize-pane -L 10
bind L resize-pane -L 100
bind > resize-pane -R 10
bind R resize-pane -R 100
bind - resize-pane -D 5
bind D resize-pane -D 36
bind + resize-pane -U 5
bind U resize-pane -U 36
## status bar
#set -g status-bg black
#set -g status-left-bg blue
#set -g status-right-bg blue
#set -g status-left "#[fg=white]s#S:w#I.p#P#[default]"
# List of plugins
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
'
# Other examples:
# github_username/plugin_name \
# [email protected]/user/plugin \
# [email protected]/user/plugin \
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'
# tmux-resurrect
run-shell ~/.tmux/tmux-resurrect/resurrect.tmux
# tmux-yank
run-shell ~/.tmux/tmux-yank/yank.tmux
# tmux-copycat
run-shell ~/.tmux/tmux-copycat/copycat.tmux
# tmux-open
run-shell ~/.tmux/tmux-open/open.tmux
# powerline
setw -g aggressive-resize on
setw -g automatic-rename on
setw -g monitor-activity on
setw -g utf8 on
setw -g clock-mode-style 12
setw -g alternate-screen on
setw -g monitor-activity on
set -g visual-activity on
set -g default-shell /bin/zsh
set -g default-command /bin/zsh
set -g set-titles on
set -g set-titles-string '#T'
set -g repeat-time 100
#set -g default-terminal "screen-256color"
set -g message-fg black
set -g message-bg yellow
set -g status-justify right
set -g status-bg white
set -g status-fg blue
set -g status-interval 5
set -g status-utf8 on
setw -g window-status-current-format '#[fg=blue]⮂#[fg=white,bg=blue] #I ⮃ #W ⮂'
setw -g window-status-format '#[fg=blue,bg=white]⮂#[fg=white,bg=blue] #I #[fg=white,bg=blue]⮂#[default] w'
set -g status-left '#[bg=blue,fg=white] #S #[bg=default,fg=blue]⮀ #[fg=blue]#I:#P ⮁ #[default] #T'
#
#User the mouse to regulate the size of panel
#setw -g mouse-resize-pane on
#setw -g mouse-select-pane on
#setw -g mouse-select-window on
#setw -g mode-mouse on
set -g status-left-length 80
set -g status-right ''