-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.tmux.conf
49 lines (38 loc) · 1.3 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
# Reattach each new window to the user bootstrap namespace
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL -l"
# change prefix to Ctrl-a (like in gnu-screen)
unbind C-b
set-option -g prefix C-a
# mode
set-option -g default-terminal screen-256color
# start with window 1 (instead of 0)
set -g base-index 1
# binds
bind | split-window -h
bind - split-window -v
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# no delay
set -s escape-time 0
# display messages for longer
set -g display-time 2000
# listen to bells on all windows
set -g bell-action any
set -g visual-bell off
setw -g aggressive-resize on
# status bar
set -g status-style bg=black,fg=white
set -g status-left-style fg=green
set -g status-right-style fg=green
set -g status-left-length 30
set -g status-right-length 30
set -g status-left "#[fg=cyan]#S#[fg=default] #(cut -d' ' -f'1-3' /proc/loadavg)"
set -g status-right "%a, %b %d #[fg=cyan]%T"
# update status text often
set -g status-interval 1
# window tabs
set -g status-justify centre
setw -g window-status-format ' #I.#W'
setw -g window-status-current-format ' #I.#W'
setw -g window-status-current-style fg=cyan
setw -g window-status-bell-style bold