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

fix for directories with spaces

This commit is contained in:
Joel Schaerer 2009-02-19 18:16:44 +01:00
parent 924724d65c
commit f5c39308eb

View File

@ -5,7 +5,8 @@ if [ $SHELL = "/bin/bash" ] && [ -n "$PS1" ]; then
{
local cur
COMPREPLY=()
cur=${COMP_WORDS[1]}
unset COMP_WORDS[0] #remove "j" from the array
cur=${COMP_WORDS[*]}
IFS=$'\n' read -d '' -a COMPREPLY < <(autojump --completion "$cur")
return 0
}