-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
47 lines (35 loc) · 1.21 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
set-option -g default-terminal "xterm-256color"
# Fixing the colors in Tmux. Based on the Gist at
# https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6
if-shell '[ "$COLORTERM" = "truecolor" ]' {
set -ag terminal-overrides ",xterm-256color:RGB"
}
set-option -s escape-time 0
set-option -g display-time 4000
set-option -g status-interval 1
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
set-option -g focus-events on
set-option -g history-limit 16384
set-option -g allow-passthrough on
bind r source-file ~/.tmux.conf
set -g base-index 1
setw -g pane-base-index 1
set -g mouse on
set -g mode-keys vi
set -g status-keys vi
set -s copy-command "reattach-to-user-namespace pbcopy"
bind -r v last-window
# Add Vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# Change the keys for resizing panes as the default keys are reserved on macOS.
bind -r C-k resize-pane -U 10
bind -r C-j resize-pane -D 10
bind -r C-h resize-pane -L 10
bind -r C-l resize-pane -R 10
set-option -g status-style bg=default
set -g status-left-length 120
set -g status-right-length 120
set -g status-right "\"#{pane_title}\" %Y-%m-%d %H:%M "