-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
78 lines (60 loc) · 1.58 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
set -g default-terminal "screen-256color"
# Set prefix Key
unbind C-b
set -g prefix C-a
set -g default-command "reattach-to-user-namespace -l zsh"
set -g mode-mouse on
setw -g mouse-select-window on
setw -g mouse-select-pane on
# Copy mode
setw -g mode-keys vi
bind ` copy-mode
unbind [
unbind p
bind p paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy Escape cancel
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# Prefix+a sends Prefix
# eg. C-a+a will send C-a (jump to start of line)
bind a send-prefix
# Swap on C-a C-a
bind-key C-a last-pane
# Act like vi
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Split shortcuts
bind | split-window -h
bind - split-window -v
# 80/20 split
bind-key C-t split-window -p 20
# Reload config file
unbind r
bind r source-file ~/.tmux.conf
# Character support
set -g utf8 on
set -g status-utf8 on
# Less stretching to get to the first item
set -g base-index 1
# Autorename
setw -g automatic-rename on
# Statusbar
set -g status-interval 5
set -g status-left-length 60
set -g status-right-length 150
set -g status-justify left
set -g status-bg colour234
set -g status-fg colour248
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# # remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''