瀏覽代碼

Added the new autocompletition file for zsh

pull/18/head
Simon Marache-Francisco 15 年之前
父節點
當前提交
d7c4f7177e
共有 1 個檔案被更改,包括 17 行新增0 行删除
  1. +17
    -0
      _j

+ 17
- 0
_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

Loading…
取消
儲存