forked from lightningdb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtmux.conf
86 lines (64 loc) · 2.28 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
79
80
81
82
83
84
85
# Change the prefix key (screen friendly).
set-option -g prefix C-z
unbind-key C-b
bind-key z send-prefix
# toggle last window
bind-key C-x last-window
bind-key C-z select-pane -t :.+
# setup pane split with 25% at bottom
bind-key C-t split-window -p 25
# Default global options.
set-option -g bell-action none
set-option -g default-terminal "screen-256color"
set-option -g mouse-select-pane on
set-option -g status-bg green
set-option -g status-keys vi
set-option -g status-right-length 60
# Default global window options
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
set-window-option -g utf8 on
set-window-option -g automatic-rename off
# Other key bindings.
bind-key i choose-window
bind-key m setw monitor-activity
bind-key y setw force-width 81
bind-key u setw force-width 0
bind-key D detach \; lock
bind-key N neww \; splitw -d
# statusbar --------------------------------------------------------------
# Show messages and notifications for 2 seconds.
set-option -g display-time 2
# Refresh the status bar every 10 seconds.
set-option -g status-interval 10
# The status bar itself.
set-option -g status-left-length 35
set-option -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=blue]%H:%M#[default]'
# default statusbar colors
set-option -g status-fg white
set-option -g status-bg default
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg cyan
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 white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# command/message line colors
set-option -g message-fg magenta
set-option -g message-bg black
set-option -g message-attr bright
# reload key
bind r source-file ~/.tmux.conf
set -g history-limit 15000
# Ctrl-Left/Right cycles thru windows (no prefix)
bind-key -n "C-Left" select-window -t :-
bind-key -n "C-Right" select-window -t :+
# Ctrl-Up/Down cyles thru panes (no prefix)
bind-key -n "C-Up" select-pane -t :.-
bind-key -n "C-Down" select-pane -t :.+
# Cycle to next pane
bind-key -r Tab select-pane -t :.+