-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
60 lines (43 loc) · 2.23 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
## Key Bindings
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind R source-file ~/.tmux.conf
set-option -g mouse on
set-window-option -g mode-keys vi
# Update agent related variables so that we don't have to make new windows when reconnecting
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# Don't allow applications to set the name of the window
set-option -g allow-rename off
set -g default-terminal "screen-256color"
set -g pane-border-style bg=default,fg=colour243
set -g pane-active-border-style bg=default,fg=colour51
# All the status bar things at the top
set -g status-position top
set -g status-style fg=colour81,bg=colour238,dim
setw -g message-style fg=colour136,bg=colour235,none
setw -g message-command-style fg=colour136,bg=colour235,none
setw -g window-status-current-style fg=colour136,bg=colour235,none
setw -g window-status-current-format ' #{window_index}#[fg=colour242]:#[fg=colour250]#{window_name}#[fg=colour242]#{window_flags} '
setw -g window-status-style fg=colour81,bg=default,bold
setw -g window-status-format ' #{window_index}#[fg=colour236]:#[fg=colour254]#{window_name}#[fg=colour236]#{window_flags} '
set -g status-left ''
set -g status-left-length 20
set -g status-right '#[fg=colour235,bg=colour241,none,bold] %m/%d/%y #[fg=colour235,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 20
# Silence all the bell things otherwise i'll go nuts...
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# Shortcuts for resizing
bind-key -r -T prefix M-Up resize-pane -U 5
bind-key -r -T prefix M-Down resize-pane -D 5
bind-key -r -T prefix M-Left resize-pane -L 5
bind-key -r -T prefix M-Right resize-pane -R 5
bind-key -r -T prefix C-Up resize-pane -U
bind-key -r -T prefix C-Down resize-pane -D
bind-key -r -T prefix C-Left resize-pane -L
bind-key -r -T prefix C-Right resize-pane -R