選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

18 行
300 B

  1. if [[ ! -o interactive ]]; then
  2. return
  3. fi
  4. compctl -K _rbenv rbenv
  5. _rbenv() {
  6. local words completions
  7. read -cA words
  8. if [ "${#words}" -eq 2 ]; then
  9. completions="$(rbenv commands)"
  10. else
  11. completions="$(rbenv completions ${words[2,-1]})"
  12. fi
  13. reply=("${(ps:\n:)completions}")
  14. }