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

fixes for zsh. Thanks simon!!!

This commit is contained in:
Joel Schaerer
2009-10-03 20:25:16 +02:00
parent 92ef70ffce
commit 0ec15907e3
3 changed files with 6 additions and 10 deletions

10
_j
View File

@@ -18,10 +18,6 @@
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
autojump --completion ${cur[*]} | while read i; do
compadd -U $i;
done