1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00
Files
wting_autojump/_j

12 lines
235 B
Plaintext
Raw Permalink Normal View History

#compdef j
cur=${words[2, -1]}
ret=$(autojump --completion "${cur[*]}")
if [ "$ret" != "" ]; then # if at least one answer
2009-03-30 13:40:48 +02:00
for i in $(echo "$ret"); do
compadd -U $i # add all of them as possible completion
done
fi