mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
12 lines
235 B
Plaintext
12 lines
235 B
Plaintext
#compdef j
|
||
|
||
cur=${words[2, -1]}
|
||
|
||
ret=$(autojump --completion "${cur[*]}")
|
||
|
||
if [ "$ret" != "" ]; then # if at least one answer
|
||
for i in $(echo "$ret"); do
|
||
compadd -U $i # add all of them as possible completion
|
||
done
|
||
fi
|