-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
53 lines (44 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
set-option -g default-terminal "xterm-256color"
set-option -g allow-rename off
set-window-option -g xterm-keys on
# '\' for horizontal split and '-' for vertical split
# Start in current path in the new pane
bind \ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
unbind -n C-Left
unbind -n C-Right
# Reload configuration
bind r source-file ~/.tmux.conf
# Type to all panes in the window at the same time
bind a set-window-option synchronize-panes
# Close window
bind k kill-window
# Create window from current pane
bind m break-pane
unbind &
# ALT + arrow keys for moving around panes in the window
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# CTRL + SHIFT + left/right arrow keys for switching windows
bind -n C-S-Left previous-window
bind -n C-S-Right next-window
# CTRL + H/J/K/L to resize pane right/down/up/left
bind -n C-h resize-pane -L
bind -n C-j resize-pane -D
bind -n C-k resize-pane -U
bind -n C-l resize-pane -R
set -g mouse on
# Tmux Plugin Manager
set -g @plugin 'tmux-plugins/tpm'
# Tmux Sensible - fixes several problems regarding vim running in tmux
set -g @plugin 'tmux-plugins/tmux-sensible'
# Tmux Ressurect - Store tmux session on disc and restore it
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Tmux Themes
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/block/cyan'
run '~/.tmux/plugins/tpm/tpm'