You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wting_autojump/_j

12 lines
235 B

#compdef j
cur=${words[2, -1]}
ret=$(autojump --completion "${cur[*]}")
if [ "$ret" != "" ]; then # if at least one answer
16 years ago
for i in $(echo "$ret"); do
compadd -U $i # add all of them as possible completion
done
fi