-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
57 lines (44 loc) · 1.81 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
# Basic TMUX configuration file.
# Based somewhat from example conf at http://www.tofu.org/drupal/node/182
# Set prefix to ctrl-a, as per screen
set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# vi style movements
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Update status bar colors
set -g status-bg black
set -g status-fg white
# Left side of status bar
set -g status-left-length 20
set -g status-left '#[fg=green][#[bg=black,fg=cyan]#S#[bg=black,fg=blue,dim]:#H#[fg=green]]'
# Inactive windows in status bar
set-window-option -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F'
# Current or active window in status bar
#set-window-option -g window-status-current-bg yellow
#set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-format '#[bg=blue,fg=cyan,bold]#I#[bg=blue,fg=cyan]:#[fg=black]#W#[fg=dim]#F'
# Right side of status bar
#set -g status-right '#[fg=yellow]#(date)'
set -g status-right '#[fg=green][#[fg=white]#T#[fg=green]][#[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]#[fg=green]]'
# Try out vi mode for tmux
set-option -g status-keys vi
set-window-option -g mode-keys vi
# keep tmux msgs around longer
set -g display-time 3000
# Set window notifications
set-window-option -g monitor-activity on
set -g visual-activity on
setw -g automatic-rename off
# fix ssh agent when tmux is detached
# see: http://stackoverflow.com/a/23187030
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
set -g update-environment -r
# Shuffle up windows numbers when mid-number window is removed
set-option -g renumber-windows on
# Alerted window in status bar. Windows which have an alert (bell, activity or content).
# set-window-option -g window-status-alert-fg red
# set-window-option -g window-status-alert-bg white