-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
70 lines (52 loc) · 1.6 KB
/
dot_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
# Remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
unbind C-b
bind C-a send-prefix
# Set escape time
set-option -sg escape-time 10
# Set tmux to use the same TERM as the machine
set -g default-shell $SHELL
set -g default-command $SHELL
# Set default terminal
set-option -g default-terminal "screen-256color"
# Set RGB capability
set-option -sa terminal-overrides ',xterm-256color:RGB'
# Configure Tabs
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
bind-key -n C-t new-window
bind-key -n C-T new-window -c "#{pane_current_path}"
bind-key -n C-w kill-pane
# Panes
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
unbind r
bind r source-file ~/.tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
# Status bar
set -g status-position top
# Fix System Clipboard
set -g default-shell $SHELL
set -g default-command 'reattach-to-user-namespace -l ${SHELL}'
# Theme
set -g @themepack 'powerline/block/gray'
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect' # Persist tmux sessions after computer restarts
set -g @plugin 'tmux-plugins/tmux-continuum' # Automatically saves sessions for you every 15 minutes
set -g @themepack 'powerline/default/cyan'
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
# Initialize Tmux Plugin Manager (TPM)
run -b '~/.tmux/plugins/tpm/tpm'