From d71a354abbc3a167fb341e2d90147006a4b7ed89 Mon Sep 17 00:00:00 2001 From: Erdi Aker Date: Sun, 14 Dec 2014 23:23:53 +0200 Subject: [PATCH] Fixes joelthelion/autojump#335 --- bin/autojump.fish | 4 ++++ 1 file changed, 4 insertions(+) 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