mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
fix for directories with spaces
This commit is contained in:
@@ -5,7 +5,8 @@ if [ $SHELL = "/bin/bash" ] && [ -n "$PS1" ]; then
|
|||||||
{
|
{
|
||||||
local cur
|
local cur
|
||||||
COMPREPLY=()
|
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")
|
IFS=$'\n' read -d '' -a COMPREPLY < <(autojump --completion "$cur")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user