-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
60 lines (46 loc) · 1.45 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
# Terminal
set -g default-terminal "screen-256color"
# For neovim
set-option -sa terminal-overrides ',xterm-256color:RGB'
# Move ^b to ^a, and send a literal ^a on ^aa
set -g prefix C-a
unbind C-b
bind a send-prefix
# ^a^a
bind C-a last-window
# Don't delay after ESC
set -s escape-time 0
# Require <prefix> before every individual tmux command
set -g repeat-time 0
# Constrain size to the smallest client actually *displaying* a window
setw -g aggressive-resize on
# Use vim bindings in copy and choice modes
setw -g mode-keys vi
# Use vim bindings in the command prompt (<ctrl-a>:<esc>)
set -g status-keys vi
# Use 'v' and 'y' vim bindings in copy-mode
# Switch panes using hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Bind a key to toggle mouse control (for pane size / active pane / selection)
bind -n F9 set mouse
# Window management
set -g base-index 1
set -g renumber-windows on
set -g allow-rename off
# Pane managemenet
setw -g pane-base-index 1
set -g display-panes-time 2000
# Fix bad M-left / M-right defaults
bind -n M-left send-keys "\e[1;9D"
bind -n M-right send-keys "\e[1;9C"
# Open new panes and windows to the same working path as the current pane
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind v new-window "nvim"
# Statusbar Color Palatte
set-option -g status-bg black
set-option -g status-fg white