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:
10
_j
10
_j
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user