-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.tmux.conf
More file actions
50 lines (47 loc) · 1.82 KB
/
Copy path.tmux.conf
File metadata and controls
50 lines (47 loc) · 1.82 KB
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
# prefix is Ctrl-a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
#open new panes and windows in current dir
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -h -c "#{pane_current_path}"
bind % split-window -v -c "#{pane_current_path}"
# repeat last shell command on right pane (if it happens to be a shell)
bind-key s select-pane -t 1 \; send-keys C-c Up Up C-m \; last-pane
# exit esp32 monitor
bind-key e select-pane -t 1 \; send-keys C-]
#Mouse works as expected
set -g mouse on
# moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# neovim recommendation
set-option -sg escape-time 10
set-option -sa terminal-overrides ',alacritty:RGB'
set -g default-terminal "screen-256color"
# copy paste
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-urlview'
# Auto install all tmux plugins on new machine
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
# Nord light/dark, generated from nordtheme/tmux.
# Rewritten by ~/.local/bin/theme-follow when the desktop flips.
if "test -f ~/.config/tmux/theme.conf" "source-file ~/.config/tmux/theme.conf"