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:
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…
Reference in New Issue
Block a user