-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdot_tmux.conf
88 lines (65 loc) · 2.77 KB
/
dot_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
# -- display -------------------------------------------------------------------
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
set -g set-titles-string '#h ❐ #S ● #I #W'
set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000 # slightly longer status messages display time
# I have 256 colors
set -g default-terminal screen-256color
# Eats ram but saves lives
set-option -g history-limit 50000
# Use vi-keys
set-window-option -g mode-keys vi
# Mouse Mode
# is_older="[[ $(tmux -V | cut -d' ' -f2) -lt 2.1 ]] && true || false"
# if-shell "$is_older" "set -g mode-mouse on; set -g mouse-resize-pane on;\
# set -g mouse-select-pane on; set -g mouse-select-window on" "set -g mouse on"
bind-key m set-option -g mouse on \; display 'Mouse: ON'
bind-key M set-option -g mouse off \; display 'Mouse: OFF'
# Activate inner-most session (when nesting tmux) to send commands
bind a send-prefix
# clear both screen and history
bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history
# activity
set -g monitor-activity on
set -g visual-activity off
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Bar at the bottom
set-option -g status-position bottom
# Misc
set-option -g repeat-time 0
# Removes ESC delay
set -sg escape-time 0
# List of plugins
set -g @tpm_plugins ' \
caiogondim/maglev \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-pain-control \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-open \
tmux-plugins/tmux-prefix-highlight \
tmux-plugins/tmux-sessionist \
'
# fcsonline/tmux-thumbs \
# Plugin Configuration
# set -g @thumbs-alphabet colemak
# Optional
# tmux-plugins/tmux-cpu \
# tmux-plugins/tmux-battery \
# Restore
# set -g @continuum-boot 'on'
# set -g @continuum-restore 'on'
# set -g @resurrect-capture-pane-contents 'on'
# Initialize TMUX plugin manager [ALWAYS THE LAST COMMAND]
run '~/.tmux/plugins/tpm/bin/install_plugins'
run '~/.tmux/plugins/tpm/tpm'