-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
51 lines (42 loc) · 1.61 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
# remap prefix to Control + a
set -g prefix C-q
unbind C-b
bind C-q send-prefix
# force reload config file
unbind r
bind r source-file ~/.tmux.conf
# split panes using _ and |
bind \ split-window -h
bind - split-window -v
unbind '"'
unbind %
#set -g mouse on
set -g default-terminal "screen-256color"
#set-option -g repeat-time 200
# Smart pane switching with awareneess of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
set -g status-left-length 60
# style
set -g pane-border-style fg="#333333"
#set -g pane-active-border-style fg="#888888"
set -g pane-active-border-style fg="#8787de"
set -g status-style bg="#444444"
#set -g status-fg "#444444"
#window status
setw -g window-status-format " ###I (#P/#{window_panes}): #W "
setw -g window-status-current-format " ###I (#P/#{window_panes}): #W "
setw -g window-status-current-style fg="#d0d0d0",bold
setw -g window-status-style bg="#444444",fg="#c0c0c0"
set-option -g display-time 2000
# use control-shift up, down, left, or right to quickly resize panes
bind-key -n C-S-Up resize-pane -U 5
bind-key -n C-S-Down resize-pane -D 5
bind-key -n C-S-Left resize-pane -L 5
bind-key -n C-S-Right resize-pane -R 5