-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
executable file
·76 lines (57 loc) · 1.69 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
65
66
67
68
69
70
71
72
73
74
75
76
# Fix prefix
unbind C-b
set-option -g prefix C-a
# Refresh config
unbind-key r
bind-key r source-file ~/.tmux.conf
# Use ZSH
set-option -g default-shell /bin/zsh
# OSX fix
# set -g default-command "reattach-to-user-namespace -l /bin/zsh"
# Panes
bind-key C-a last-window
bind-key | split-window -h -c '#{pane_current_path}'
bind-key \\ split-window -h -c '#{pane_current_path}'
bind-key _ split-window -v -c '#{pane_current_path}'
bind-key - split-window -v -c '#{pane_current_path}'
setw -g mode-keys vi
bind h select-pane -L
bind C-h select-pane -L
bind j select-pane -D
bind C-j select-pane -D
bind k select-pane -U
bind C-k select-pane -U
bind l select-pane -R
bind C-l select-pane -R
# New Window
bind-key c new-window -c '#{pane_current_path}' -n 'zsh'
# Misc
set -g history-limit 10000
set -g base-index 1
setw -g aggressive-resize on
setw -g automatic-rename off
set -g default-terminal "screen-256color"
bind-key a send-prefix
set -s escape-time 0
# Status bar
set -g status-bg green
set -g status-left-length 50
set -g status-left ""
set -g status-left-style bg=red,fg=black
set -g status-right-length 50
set -g status-right "#S"
set -g status-right-style bg=red,fg=black
set -g status-justify "left"
setw -g window-status-style bg=green,fg=black
setw -g window-status-format "#I:[#W]"
setw -g window-status-current-style bg=cyan,fg=black
setw -g window-status-current-format "#I:[#W]"
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'tmux-plugins/tmux-resurrect'
# This doesn't work very well...
#set -g @resurrect-strategy-vim 'session'
#set -g @plugin 'tmux-plugins/tmux-continuum'
#set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'