From 4a1de9d59941772106d43cf8dfc81305413cd9d1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 11 Jan 2014 20:54:39 +0100 Subject: [PATCH] autojump.zsh: use `:h` modifier instead of `dirname` Ref: https://github.com/joelthelion/autojump/issues/249 --- bin/autojump.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/autojump.zsh b/bin/autojump.zsh index aca16f1..c3008c1 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -20,8 +20,8 @@ else export AUTOJUMP_ERROR_PATH=~/.local/share/autojump/errors.log fi -if [[ ! -d "$(dirname ${AUTOJUMP_ERROR_PATH})" ]]; then - mkdir -p "$(dirname ${AUTOJUMP_ERROR_PATH})" +if [[ ! -d ${AUTOJUMP_ERROR_PATH:h} ]]; then + mkdir -p ${AUTOJUMP_ERROR_PATH:h} fi