-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
79 lines (58 loc) · 2.11 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
# Bind CTRL-A to prefix
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# set scrollback history to 10000 (10k)
set -g history-limit 10000
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 10
bind J resize-pane -D 10
bind K resize-pane -U 10
bind L resize-pane -R 10
set-window-option -g automatic-rename on
# Shift arrows to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# 256 colors
set-option -g default-terminal 'screen-256color'
# allow Vim to recieve modifier keys: Shift, Control, Alt
set-window-option -g xterm-keys on
# Vim style pane selection
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Fix slow Vim escape
set -s escape-time 0
# Panes
set -g pane-border-bg '#171530'
set -g pane-border-fg '#2700a2'
# Background of active border
set -g pane-active-border-bg '#171530'
# Divider line in border
set -g pane-active-border-fg '#5900e3'
# Status
set -g status-position bottom
set -g status-bg '#171530'
set -g status-fg colour137
set -g status-left ''
set -g status-right "#S #[fg=yellow] %d %b %Y #[fg=white]:: UTC #[fg=green]#(date -u | awk '{print $4}') #[fg=white]:: #[fg=colour169]LA #(TZ=America/Los_Angeles date +%%H:%%M:%%S)"
set -g status-right-length 120
set -g status-left-length 20
# Current Window Number
setw -g window-status-current-fg '#49f00a'
# Current Selected Window
setw -g window-status-current-bg '#5100f3'
setw -g window-status-current-attr bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-fg colour138
# Unselected Window
setw -g window-status-bg '#221E44'
setw -g window-status-attr none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-attr bold
setw -g window-status-bell-fg colour255
setw -g window-status-bell-bg colour1
# Allow proper ssh agent forwarding when reattaching
if-shell 'test "$SSH_CONNECTION"' "set -g update-environment 'DISPLAY WINDOWID XAUTHORITY'"
if-shell 'test "$SSH_CONNECTION"' "set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock"