/
.tmux.conf
77 lines (60 loc) · 2.51 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
unbind-key C-b
set -g prefix C-r
bind r send-keys C-r
bind C-r send-keys C-r
bind -n S-left prev
bind -n S-right next
bind -n S-up swap-window -t -1
bind -n S-down swap-window -t +1
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Smart pane switching with awareness of vim splits
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
bind -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L"
bind -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D"
bind -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U"
bind -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R"
bind -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l"
bind -r M-c clock-mode
set -g base-index 1
set -g bell-action none
set -g default-command zsh
set -g default-terminal "screen-256color"
set -g escape-time 0
set -g history-limit 10000
set -g pane-base-index 1
set -g renumber-windows on
set -g set-titles off
set -g visual-activity off
set -g visual-bell off
setw -g aggressive-resize on
setw -g allow-rename on
setw -g automatic-rename on
setw -g clock-mode-style 24
setw -g pane-base-index 1
setw -g xterm-keys off
set -g status on
set -g status-justify "left"
set -g status-left-length 20
set -g status-right-length 60
set -g message-command-style "fg=colour144,bg=colour237"
set -g message-style "fg=colour144,bg=colour237"
set -g pane-active-border-style "bg=colour19"
set -g pane-border-style "bg=colour18"
set -g status-left-style "bg=colour234,none"
set -g status-right-style "bg=colour234,none"
set -g status-style "bg=colour237,none"
set -g status-left "#[fg=colour15,bg=colour27] #{host_short} #[fg=colour15,bg=colour26] #{session_name} "
set -g status-right "#[fg=colour144,bg=colour236] %H:%M:%S"
# set -g status-right "#[fg=colour144,bg=colour236] #(TZ=America/Los_Angeles date +'%%H') #[fg=colour144,bg=colour238] #(TZ=America/Denver date +'%%H') #[fg=colour144,bg=colour240] #(TZ=America/Chicago date +'%%H') #[fg=colour144,bg=colour242] %H:%M:%S #[fg=colour144,bg=colour244] #(TZ=UTC date +'%%H') "
setw -g window-status-separator ""
setw -g window-status-style ""
setw -g window-status-format "#[fg=colour144,bg=colour236] #{window_index} > #{window_name} "
setw -g window-status-current-format "#[fg=colour144,bg=colour234] #{window_index} > #{pane_current_command} "