* correctly automatic tpm tmux plugins install - loading tpm for the existing TMUX_PLUGIN_MANAGER_PATH variable for correctly working install_plugins script

This commit is contained in:
2024-10-16 16:02:29 +03:00
parent 05823efcb7
commit ef7f6c92b3
3 changed files with 13 additions and 10 deletions

View File

@ -114,8 +114,8 @@ bind -T off F12 \
refresh-client -S refresh-client -S
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
if "test ! -d ~/.tmux/plugins/tpm" \ if-shell "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'; run '~/.tmux/plugins/tpm/tpm'; run '~/.tmux/plugins/tpm/bin/install_plugins'; run '~/.tmux/plugins/tpm/tpm'" \
run '~/.tmux/plugins/tpm/tpm' "run '~/.tmux/plugins/tpm/tpm'"
# vim: se ft=tmux : # vim: se ft=tmux :

View File

@ -22,6 +22,7 @@ set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @continuum-restore 'on' set -g @continuum-restore 'on'
set -g @continuum-save-interval '5' set -g @continuum-save-interval '5'
set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-processes 'su'
set -g @yank_selection 'primary' set -g @yank_selection 'primary'
set -g @yank_selection_mouse 'clipboard' set -g @yank_selection_mouse 'clipboard'
set -g @man-size '40%' set -g @man-size '40%'
@ -102,7 +103,7 @@ bind -T root F12 \
set prefix None \;\ set prefix None \;\
set key-table off \;\ set key-table off \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\ refresh-client -S
bind -T off F12 \ bind -T off F12 \
set -u prefix \;\ set -u prefix \;\
@ -110,8 +111,8 @@ bind -T off F12 \
refresh-client -S refresh-client -S
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
if "test ! -d ~/.tmux/plugins/tpm" \ if-shell "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'; run '~/.tmux/plugins/tpm/tpm'; run '~/.tmux/plugins/tpm/bin/install_plugins'; run '~/.tmux/plugins/tpm/tpm'" \
run '~/.tmux/plugins/tpm/tpm' "run '~/.tmux/plugins/tpm/tpm'"
# vim: se ft=tmux : # vim: se ft=tmux :

View File

@ -37,6 +37,8 @@ bind-key -T copy-mode-vi WheelDownPane send-keys -X halfpage-down
bind r source-file ~/.tmux.conf bind r source-file ~/.tmux.conf
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
if "test ! -d ~/.tmux/plugins/tpm" \ if-shell "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'; run '~/.tmux/plugins/tpm/tpm'; run '~/.tmux/plugins/tpm/bin/install_plugins'; run '~/.tmux/plugins/tpm/tpm'" \
run '~/.tmux/plugins/tpm/tpm' "run '~/.tmux/plugins/tpm/tpm'"
# vim: se ft=tmux :