From e4d579fa523842b8bcf76844f94b15687be86300 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 7 Apr 2023 23:47:05 -0400 Subject: [PATCH] Fix automatic install of Tmux Plugin Manager --- .config/tmux/tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 1b28fa8..ebd5227 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -30,8 +30,8 @@ set-option -g @plugin 'tmux-plugins/tpm' set-option -g @plugin 'noscript/tmux-mighty-scroll' # install/update tpm -if-shell "test ! -d " \ - "run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'" +if-shell "test ! -d ~/.config/tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'" run-shell '~/.config/tmux/plugins/tpm/bin/install_plugins' run-shell '~/.config/tmux/plugins/tpm/bin/clean_plugins' run-shell '~/.config/tmux/plugins/tpm/bin/update_plugins all'