-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
61 lines (49 loc) · 1.55 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
set -g prefix C-b
setw -g mode-keys vi
set -g base-index 1
set -g status-position top
set -s escape-time 0
setw -g mouse on
# Act like vim for selecting panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resizing Panes
bind-key H resize-pane -L 15
bind-key K resize-pane -U 15
bind-key J resize-pane -D 15
bind-key L resize-pane -R 15
# Synchronized input
bind I setw synchronize-panes
# copy paste
bind P paste-buffer
# switch windows alt+number
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
# Set term color properly
set -g default-terminal "screen-256color"
# Neat window titles
# set -g set-titles-string "tmux:#I #W"
# setw -g window-status-fomat "#[bg=NONE]#[fg=colour240] #I #[bg=NONE]#[fg=colour240] #W "
# setw -g window-status-current-format "#[fg=colour246]#[bg=NONE] #I #[bg=NONE]#[fg=colour246] #W#F "
# Aesthetics
set -g status-bg blue
set -g status-fg black
set -g pane-border-fg blue
set -g pane-active-border-fg blue
# Be as large as you can be
setw -g aggressive-resize on
# Set up reload key for tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set-option -g history-limit 5001
# breaks syntax highlighting, so put at the bottom
bind-key '"' split-window -c '#{pane_current_path}'
bind-key \; split-window -h -c '#{pane_current_path}'