1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Fixes to fish script quoting

This commit is contained in:
Leonid Shevtsov 2014-12-01 16:25:44 +02:00
parent 10dede0092
commit 63e1587515

View File

@ -19,15 +19,15 @@ else
set -x AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log set -x AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log
end end
if test ! -d "(dirname $AUTOJUMP_ERROR_PATH)" if test ! -d (dirname "$AUTOJUMP_ERROR_PATH")
mkdir -p "(dirname $AUTOJUMP_ERROR_PATH)" mkdir -p (dirname "$AUTOJUMP_ERROR_PATH")
end end
# change pwd hook # change pwd hook
function __aj_add --on-variable PWD function __aj_add --on-variable PWD
status --is-command-substitution; and return status --is-command-substitution; and return
if test -f "$AUTOJUMP_ERROR_PATH" if test -f "$AUTOJUMP_ERROR_PATH"
autojump --add (pwd) >/dev/null 2>>$AUTOJUMP_ERROR_PATH & autojump --add (pwd) >/dev/null 2>>"$AUTOJUMP_ERROR_PATH" &
else else
autojump --add (pwd) >/dev/null & autojump --add (pwd) >/dev/null &
end end