From c8212106c5ccbfd6928f4078809ae860bd97a54f Mon Sep 17 00:00:00 2001 From: George Witteman Date: Tue, 27 Aug 2024 14:24:26 -0700 Subject: [PATCH] Fix vim plugins install script --- .../run_onchange_after_20-install-vim-plugins.sh.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl index 94ad79c..05dae11 100644 --- a/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl @@ -29,5 +29,7 @@ fi # writing a viminfo file. The optional number N is the value for 'verbose'. # Default is 10. # https://github.com/junegunn/vim-plug/wiki/tips#install-plugins-on-the-command-line -vim -es -u "${HOME}/.vim/vimrc" -i NONE -c "PlugClean!" -c "quitall" +# +# PlugClean! will return a non-zero status code in some cases +vim -es -u "${HOME}/.vim/vimrc" -i NONE -c "PlugClean!" -c "quitall" || true vim -es -u "${HOME}/.vim/vimrc" -i NONE -c "PlugInstall" -c "quitall"