-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
58 lines (45 loc) · 1.95 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
set -sg escape-time 0
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",screen-256color:Tc"
set -g default-shell /usr/bin/fish
setw -g mode-keys vi
set -g history-limit 10000
#set -g utf8 on
#set -g status-utf8 on
set -g xterm-keys on
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
setw -g monitor-activity on
set-option -g status-justify left
set-option -g status-left-length 90
set-option -g status-fg black
set-option -g status-bg colour52
set-option -g pane-active-border-bg black
set-option -g pane-active-border-fg colour196
set-option -g pane-border-bg black
set-option -g pane-border-fg colour59
set-option -g message-bg colour235
set-option -g message-fg colour196
setw -g window-status-fg colour196
setw -g window-status-bg colour52
setw -g window-status-current-fg colour196
setw -g window-status-current-bg black
setw -g window-status-activity-attr default
setw -g window-status-activity-fg green
setw -g window-status-bg colour52
set -g status-left '#[fg=colour160]#H#[fg=color180]:#[fg=colour155]#S #[default]'
set -g status-right-length 140
set -g status-right '#[fg=green][#[fg=white] #T #[fg=green]][ #[fg=black]%H:%M #[fg=green]]#[default]'
#set -g status-right '#[fg=colour140]%H:%M#[default]'
set -g history-limit 10000
bind-key -n C-l send-keys 'C-l'
# Smart pane switching with awareness 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"
bind r source-file ~/.tmux.conf