forked from humanshell/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
58 lines (45 loc) · 1.42 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
# improve colors
#set -g default-terminal "screen-256color"
# Mouse mode for tmux > 2.1 (Oct 2015)
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Start numbering at 1
set -g base-index 1
# act like vim
setw -g mode-keys vi
bind -r C-h resize-pane -L 5
bind -r C-j resize-pane -D 5
bind -r C-k resize-pane -U 5
bind -r C-l resize-pane -R 5
# act like GNU screen
unbind C-b
set -g prefix C-s
# rebind windown splits
unbind %
bind '|' split-window -h
bind '-' split-window -v
# kill the entire session
bind q kill-session
# status bar
set -g status-interval 1
set -g status-justify right # center align window list
set -g status-left-length 25
set -g status-left ' %b %d, %Y %l:%M %p'
set -g status-right-length 0
set -g status-right ''
# default statusbar colors
set -g status-fg white
set -g status-bg default
set -g status-attr bright
# default window title colors
set-window-option -g window-status-fg white
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 green
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr dim
# 12 hour clock
set-window-option -g clock-mode-style 12