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:
parent
10dede0092
commit
63e1587515
@ -19,15 +19,15 @@ 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)"
|
||||
if test ! -d (dirname "$AUTOJUMP_ERROR_PATH")
|
||||
mkdir -p (dirname "$AUTOJUMP_ERROR_PATH")
|
||||
end
|
||||
|
||||
# change pwd hook
|
||||
function __aj_add --on-variable PWD
|
||||
status --is-command-substitution; and return
|
||||
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
|
||||
autojump --add (pwd) >/dev/null &
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user