From d7c4f7177e43cf9aa18d5a613f97c577a7712714 Mon Sep 17 00:00:00 2001 From: Simon Marache-Francisco Date: Sun, 29 Mar 2009 22:17:51 +0200 Subject: [PATCH] Added the new autocompletition file for zsh --- _j | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 _j diff --git a/_j b/_j new file mode 100644 index 0000000..7aae387 --- /dev/null +++ b/_j @@ -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