-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
55 lines (43 loc) · 1.6 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
set -g default-terminal "xterm-256color-italic"
# Set prefix for andy/travis
set -g prefix C-z
bind b send-prefix
# Vi keys for copy-mode
set-window-option -g mode-keys vi
# Panes
set -g mouse on
set -g pane-border-fg black
set -g pane-active-border-fg cyan
# Tabs
setw -g window-status-format " [#I] #W "
setw -g window-status-style bg=black,fg=white
# setw -g window-status-current-format "#[bg=white]#[fg=black] [#I] #[fg=black]#[bg=white]#W "
setw -g window-status-current-format " [#I] #W "
setw -g window-status-current-style bold,blink,reverse
# Status Bar
set-option -g status-position bottom
set -g status-fg white
set -g status-bg black
set -g status-left '#[bg=white]#[fg=black] [ #S ] #[fg=white]#[bg=black] » '
set-option -g status-left-length 100
set -g status-right-length 60
set -g status-right '%a %m-%d %H:%M'
bind c new-window -c '#{pane_current_path}'
bind \ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
bind q kill-pane
bind C-] next-window
# bind-key -n C-[ previous-window # Need to find alternative for this
# Joining and sending windows/panes
bind-key m command-prompt -p "create pane from:" "join-pane -s ':%%'"
bind-key C-h select-layout "even-vertical"
bind-key C-v select-layout "even-horizontal"
bind-key C-l clear-history
bind-key -r k select-pane -U
bind-key -r j select-pane -D
bind-key -r h select-pane -L
bind-key -r l select-pane -R
bind-key -r M-k resize-pane -U 5
bind-key -r M-j resize-pane -D 5
bind-key -r M-h resize-pane -L 5
bind-key -r M-l resize-pane -R 5