-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
67 lines (50 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
56
57
58
59
60
61
62
63
64
65
66
67
# Less far and its easier to press, (even better with the tab mapped to ctrl)
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix
set -g mouse on
# Here's a shortcut to reload the config
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
set -sg escape-time 1
# keyboars starts at 1 ... this is less insane with that conf
set -g base-index 1
# Saner splitting.
bind | split-window -h
bind - split-window -v
bind a split-window -h
bind s split-window -v
bind S choose-session
# Pane movement - vim key style
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Window movement
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Colors
set -g status-fg white
set -g status-bg colour234
#PowerLine
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour238,nobold] ## '
set -g window-status-format "#[fg=white,bg=colour234] #I:#W "
set -g window-status-current-format "#[fg=colour16,bg=colour39,noreverse,bold] #I:#W "
set -g status-right '#[fg=colour245] #h #[fg=colour16,bg=colour254,bold] %A %b %d %R '
setw -g automatic-rename on
# Better name management
bind c new-window \; command-prompt "rename-window '%%'"
bind C new-window
bind , command-prompt "rename-window '%%'"
setw -g monitor-activity on
set -g visual-activity on
# Selection and other interesting things
setw -g mode-keys vi
bind -r v copy-mode -u