mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Merge pull request #252 from blueyed/master
autojump.zsh: use `:h` modifier instead of `dirname`.
This commit is contained in:
commit
09d8992289
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user