From b22171074f9fe20814bce079a59254aac25ab684 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Sun, 25 Oct 2020 08:45:19 +1100 Subject: [PATCH] Fix after hook in freshrc Doing `test && cmd` means that the command as a whole fails if the test fails, which causes Fresh to think the hook failed. Using a proper conditional (or suffixing `|| true`) would have done the trick. --- freshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freshrc b/freshrc index d9e1d64..5a2ab02 100644 --- a/freshrc +++ b/freshrc @@ -125,5 +125,7 @@ EOF $vim +PlugUpdate +PlugClean +qall fi - [ -d ~/.asdf/installs ] && find ~/.asdf/installs -maxdepth 2 -mindepth 2 -type d -printf '%P\n' | sort -Vru -t/ -k1,1 | tr / ' ' > ~/.tool-versions + if [ -d ~/.asdf/installs ]; then + find ~/.asdf/installs -maxdepth 2 -mindepth 2 -type d -printf '%P\n' | sort -Vru -t/ -k1,1 | tr / ' ' > ~/.tool-versions + fi }