-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
54 lines (42 loc) · 1.57 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
bind-key H pipe-pane -o "exec cat >>$HOME/'#W-tmux.log'" \; display-message 'Toggled logging to $HOME/#W-tmux.log'
set-option -g repeat-time 0
set-option -sg escape-time 50
set-option -g status-keys vi
set-option -wg mode-keys vi
set-option -g history-limit 100000
set-window-option -g xterm-keys on
# Newer versions of TMUX
# set -g mouse on # Interferes with right-click etc. so living without for now
set -g set-titles on
set -g set-titles-string "#T"
set -g default-terminal "screen-256color"
set -g status-justify centre
unbind +
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind -
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
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
bind -n C-w resize-pane -U 1
bind -n C-s resize-pane -D 1
bind -n C-a resize-pane -L 1
bind -n C-d resize-pane -R 1
bind \` switch-client -t'{marked}'
bind c new-window -c "#{pane_current_path}"
set -g status-bg black
set -g status-fg white
set -g window-status-current-style 'bg=black,fg=green'
set -g pane-border-style 'fg=white'
set -g pane-active-border-style 'fg=yellow'
set -g pane-border-indicators both
set -g pane-border-lines double
set -g window-style 'fg=colour247'
set -g window-active-style 'bg=colour233,fg=colour254'
source ~/.tmux.statusline.conf
set-option -g default-shell /bin/zsh
# Install plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
run '~/.tmux/plugins/tpm/tpm'