forked from Casecommons/vim-config
/
tmux.conf
106 lines (79 loc) · 3.13 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
set-option -g default-shell $SHELL
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# Act like Vim
set-window-option -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Look good
set-option -g default-terminal "screen-256color"
# Enable mouse support (works in iTerm)
set-option -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# set-window-option -g mode-mouse on
# set-option -g mouse-select-pane on
# set-option -g mouse-resize-pane on
# set-option -g mouse-select-window on
# Set up copy like vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# set up layouts
# set main-pane-width 130
# Change cursor in vim to distinguish between insert and command mode
#set-option -g terminal-overrides '*88col*:colors=88,*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E]50;CursorShape=%?%p1%{3}%<%t%{0}%e%p1%{2}%-%;%d\007'
# scrollback buffer size increase
set -g history-limit 500000
# C-b C-b will swap to last used window
bind-key C-b last-window
# Start tab numbering at 1
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Highlight active window
set-window-option -g window-status-current-style bg=red
# use different keys to split vertical and horizonal
bind | split-window -h
bind - split-window -v
# Change cursor in vim to distinguish between insert and command mode
# Use in conjunciton with tmux-cursors.vim
set-option -g terminal-overrides '*88col*:colors=88,*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E]50;CursorShape=%?%p1%{3}%<%t%{0}%e%p1%{2}%-%;%d\007'
# use C-b v to paste the tmux buffer
bind v paste-buffer
# Tmux Resurrect options
set -g @resurrect-capture-pane-contents 'on'
# tmux-continuum options
set -g @continuum-save-interval '10'
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'alacritty'
# Use vim keybindings in copy mode
setw -g mode-keys vi
######################
### DESIGN CHANGES ###
######################
# loud or quiet?
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# statusbar
set -g status-position bottom
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour7] CS: #{continuum_status} #[fg=colour233,bg=colour8] %H:%M:%S '
setw -g window-status-current-format ' #I:#W#F '
setw -g window-status-format ' #I:#W#F '
# TPM
set -g @tpm_plugins "\
tmux-plugins/tpm \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-open \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
"
run-shell '~/.tmux/plugins/tpm/tpm'
# run-shell "powerline-daemon -q"
# source "/Users/jeffsaracco/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf"