diff --git a/bin/autojump.fish b/bin/autojump.fish index 7683df9..b70c140 100644 --- a/bin/autojump.fish +++ b/bin/autojump.fish @@ -19,6 +19,10 @@ else set -x AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log end +if test ! -d (dirname $AUTOJUMP_ERROR_PATH) + mkdir -p (dirname $AUTOJUMP_ERROR_PATH) +end + # change pwd hook function __aj_add --on-variable PWD