Browse Source

Added the new autocompletition file for zsh

pull/18/head
Simon Marache-Francisco 15 years ago
parent
commit
d7c4f7177e
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      _j

+ 17
- 0
_j View File

@ -0,0 +1,17 @@
#compdef j
cur=${words[2, -1]}
ret=$(autojump --completion "${cur[*]}")
#echo "complete on " ${cur[*]}
if [ "$ret" != "" ]; then # if at least one answer
#if [ $( echo "$ret" | wc -l ) -eq 1 ]; then # Only one answer
# echo $ret
#else # several answers
for i in $(echo "$ret"); do
compadd -U $i
done
#fi
fi

Loading…
Cancel
Save