From ef7f6c92b3d489cefc8fd485103796f0ea325a02 Mon Sep 17 00:00:00 2001 From: dimti Date: Wed, 16 Oct 2024 16:02:29 +0300 Subject: [PATCH] * correctly automatic tpm tmux plugins install - loading tpm for the existing TMUX_PLUGIN_MANAGER_PATH variable for correctly working install_plugins script --- .tmux.2.8.conf | 6 +++--- .tmux.conf | 9 +++++---- .tmux.light.conf | 8 +++++--- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.tmux.2.8.conf b/.tmux.2.8.conf index 4349d55..1eb0454 100644 --- a/.tmux.2.8.conf +++ b/.tmux.2.8.conf @@ -114,8 +114,8 @@ bind -T off F12 \ refresh-client -S # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -if "test ! -d ~/.tmux/plugins/tpm" \ - "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" -run '~/.tmux/plugins/tpm/tpm' +if-shell "test ! -d ~/.tmux/plugins/tpm" \ + "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'" # vim: se ft=tmux : diff --git a/.tmux.conf b/.tmux.conf index 372a5d3..024dd49 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -22,6 +22,7 @@ set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @continuum-restore 'on' set -g @continuum-save-interval '5' set -g @resurrect-capture-pane-contents 'on' +set -g @resurrect-processes 'su' set -g @yank_selection 'primary' set -g @yank_selection_mouse 'clipboard' set -g @man-size '40%' @@ -102,7 +103,7 @@ bind -T root F12 \ set prefix None \;\ set key-table off \;\ if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ - refresh-client -S \;\ + refresh-client -S bind -T off F12 \ set -u prefix \;\ @@ -110,8 +111,8 @@ bind -T off F12 \ refresh-client -S # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -if "test ! -d ~/.tmux/plugins/tpm" \ - "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" -run '~/.tmux/plugins/tpm/tpm' +if-shell "test ! -d ~/.tmux/plugins/tpm" \ + "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'" # vim: se ft=tmux : diff --git a/.tmux.light.conf b/.tmux.light.conf index 043462e..7404be5 100644 --- a/.tmux.light.conf +++ b/.tmux.light.conf @@ -37,6 +37,8 @@ bind-key -T copy-mode-vi WheelDownPane send-keys -X halfpage-down bind r source-file ~/.tmux.conf # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -if "test ! -d ~/.tmux/plugins/tpm" \ - "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" -run '~/.tmux/plugins/tpm/tpm' +if-shell "test ! -d ~/.tmux/plugins/tpm" \ + "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'" + +# vim: se ft=tmux :