-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
78 lines (60 loc) · 1.96 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
# set color space
set -g default-terminal "screen-256color"
# scrollback buffer n lines
set -g history-limit 10000
# listen for activity on all windows
set -g bell-action any
# start window indexing at one instead of zero
set -g base-index 1
# close window after exit
set -g set-remain-on-exit off
# initial path for new window
set default-path $HOME/work
# set pane number display time (Ctrl-B q)
set display-panes-time 2000
# set vi movement command
set-window-option -g mode-keys vi
# setup mouse
set -g mode-mouse on
set -g mouse-utf8 on
set -g mouse-resize-pane off
set -g mouse-select-pane on
set -g mouse-select-window on
# default statusbar colors
set -g status-fg colour231
set -g status-bg colour0 #236
set -g status-attr default
# automatically set window title
set-window-option -g automatic-rename on
# default window title colors
set-window-option -g window-status-fg colour231
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour11
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# bell window title colors
setw -g window-status-bell-attr bright
setw -g window-status-bell-bg colour11
setw -g window-status-bell-fg colour0
# command/message line colors
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# set format of windows in the statusbar (num:name)
set -g window-status-format "[#I:#W]"
set -g window-status-current-format "[#I:#W]"
# left align the window list
set -g status-justify left
# setup statusbar
set -g status-utf8 on
set -g status-interval 2
set -g status-left ""
set -g status-right "#(tmux-sys-meter.py) [#S]"
# key binding
bind-key | split-window -h
bind-key - split-window -v
bind-key r respawn-pane /bin/bash
bind-key R source-file ~/.tmux.conf \; display-message "Config reloaded..."
bind-key h new-window 'show-shortcuts.sh | less -R'