fix for directories with spaces

pull/18/head
Joel Schaerer 16 years ago
parent 924724d65c
commit f5c39308eb

@ -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
}

Loading…
Cancel
Save