/
.tmux.conf
44 lines (35 loc) · 1.46 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
# enable copy-paste
set -g default-shell $SHELL
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# enable 256 colors inside tmux
set -g terminal-overrides ',xterm-256color:Tc'
# enable mouse mode for scrolling
set -g mouse on
# enable vi key modes
set-window-option -g mode-keys vi
# map pane and window movements to vim-like keybindings
bind h select-pane -L
bind j select-pane -D
# map pane and window movements to vim-like keybindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# plugins
set -g @plugin "tmux-plugins/tpm" # plugin manager
set -g @plugin "tmux-plugins/tmux-resurrect" # restore sessions
set -g @plugin "tmux-plugins/tmux-continuum" # auto-saving tmux session
set -g @plugin "tmux-plugins/tmux-prefix-highlight" # indicate prefix key hit
set -g @plugin "tmux-plugins/tmux-cpu" # cpu indicator
set -g @plugin "tmux-plugins/tmux-pain-control" # pane mgt bindings
set -g @plugin "tmux-plugins/tmux-yank" # copy-mode support
# auto-restore tmux session
set -g @continuum-restore 'on'
set -g @continuum-boot 'on'
# set -g @continuum-boot-options 'iterm' # start iTerm instead of Terminal.app
# status bar
set -g status-right "#{prefix_highlight} | CPU: #{cpu_icon} #{cpu_percentage} | %a %Y-%m-%d %H:%M"
# start plugin manager
run "~/.tmux/plugins/tpm/tpm"