forked from brandonwamboldt/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
62 lines (49 loc) · 1.46 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
# Appearance customization
set -g status-bg black
set -g status-fg white
set -g window-status-current-fg green
# Custom modifier key
set -g prefix C-Space
unbind-key C-b
bind-key C-Space send-prefix
# Terminal improvements
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
set-window-option -g automatic-rename on
set-option -g set-titles on
set -g mouse on
set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
# Clear scrollback buffer
bind l clear-history
# Custom key bindings to split the window
bind-key v split-window -h
bind-key s split-window -v
# Reload tmux config
bind r source-file ~/.tmux.conf
# No delay for escape key press
set -sg escape-time 0
# Shift arrow to switch panes
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
# Control arrow to create panes
bind -n C-Down split-window -v
bind -n C-Up split-window -v -b
bind -n C-Right split-window -h
bind -n C-Left split-window -h -b
# Easier window navigation
bind -n C-Tab next-window
bind -n C-S-Tab previous-window
bind -n C-S-Left previous-window
bind -n C-S-Right next-window
# Ctrl + Alt + Left/Right to move windows
bind-key -n C-M-Left swap-window -t -1
bind-key -n C-M-Right swap-window -t +1
# Copy to cygwin clipboard
bind -n C-t run "tmux save-buffer - > /dev/clipboard"
# Kill tabs quicker
bind-key x kill-pane
# Plugins
run-shell ~/.tmux-plugins/resurrect/resurrect.tmux