fix jump cd to use seperate params (#1156)

This commit is contained in:
Assaf Ben-Amitai 2021-09-05 02:50:31 +03:00 committed by GitHub
parent 7de52ff890
commit d34741107a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ fi
if type jump >/dev/null 2>&1; then
printf "jump to : "
IFS= read -r line
odir="$(jump cd "${line}")"
# shellcheck disable=SC2086
odir="$(jump cd ${line})"
printf "%s" "0c$odir" > "$NNN_PIPE"
elif type autojump >/dev/null 2>&1; then
printf "jump to : "