-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
41 lines (34 loc) · 1.23 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
set -g default-shell "$SHELL"
set-option -ga terminal-overrides ",xterm-256color:Tc:smso"
set -sg escape-time 20
set -g status-position bottom
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
# ctrl-t to open new tab
bind-key -n C-t new-window
# ctrl T to open new tab in same directory
bind-key -n C-T new-window -c "#{pane_current_path}"
# ctrl W to close a pane (and tab if only one pane)
# bind-key -n C-w kill-pane
# ctrl b | to open new vertical split in current dir
bind | split-window -h -c '#{pane_current_path}'
# ctrl b - to open new horizontal split
bind - split-window
# ctrl b _ to open new horizontal split in current dir
bind _ split-window -c '#{pane_current_path}'
# tmux package manager
set -g @plugin 'tmux-plugins/tpm'
# sensible default settings
set -g @plugin 'tmux-plugins/tmux-sensible'
# vim pane switching shortcuts for tmux panes
set -g @plugin 'christoomey/vim-tmux-navigator'
# better aesthetics
set -g @themepack 'powerline/double/cyan'
set -g @plugin 'jimeh/tmux-themepack'
# save tmux status and restore on open
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @continuum-restore 'on'
set -g @scroll-without-changing-pane 'on'
run '~/.tmux/plugins/tpm/tpm'