-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
64 lines (49 loc) · 1.72 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
# [[ Keymaps ]]
# Pane navigation
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
# Use current path for new splits
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Custom shortcuts
bind -r "<" swap-window -d -t -1
bind -r ">" swap-window -d -t +1
bind A setw synchronize-panes\; display-message "synchronize-panes: #{?pane_synchronized,on,off}"
bind S command-prompt -p "join-pane source:" "join-pane -s :'%%'"
bind T command-prompt -p "join-pane target:" "join-pane -t :'%%'"
# [[ Options ]]
# Window renaming
set -g allow-rename off
set -g renumber-windows on
# Display pane numbers until selected
bind -T prefix q display-panes -d 0
# Increase history limit
set -g history-limit 10000
# Vim-style copy
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
# Enable mouse usage
set -g mouse on
# Terminal colors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
# Theme
set -g status-left ""
set -g status-right "#{?client_prefix,#[fg=green bold],#[fg=default]}[#S]#[fg=default nobold] #(date '+%a %b %-d %-I:%M %p')"
set -g status-style bg=default,fg=white
setw -g window-status-current-style fg=green,bold
# [[ Plugins ]]
# Load plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
# Automatically restore sessions
set -g @continuum-restore 'on'
set -g @resurrect-strategy-nvim 'session'
# Initialize TMUX plugin manager (keep at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'