-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
65 lines (50 loc) · 1.58 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
63
64
# Tmux prefix
set -g prefix C-Space
bind Space send-prefix
# reload config
unbind r
bind r source-file ~/.tmux.conf
# terminal options
set -sg escape-time 50
set -g mouse on
set -g default-terminal "xterm-256color"
set-option -sa terminal-overrides ",xterm-256color:RGB"
set-option -g focus-events on
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
set-option -g renumber-windows on
set-window-option -g pane-base-index 1
# split panes
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
bind tab next-layout
# resize panes
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
# Vim key bindings
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# Plugin Setup
# prefix + I to install plugins
# prefix + U to update plugins
# prefix + alt + u to remove plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'MunifTanjim/tmux-suspend' # lock local tmux with F12 (for working wiht remote tmux)
# Themes
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark' # or 'light'
# Alternate Theme
# set -g @plugin 'jimeh/tmux-themepack'
# set -goq @theme-window-status-current-bg "#689d6a"
# set -goq @theme-window-status-current-fg "#282a36"
# set -gwF window-status-activity-style "#{@theme-window-status-activity-fg},#{@theme-window-status-activity-bg}"
# Keep this line last
run '~/.tmux/plugins/tpm/tpm'