Parcourir la source

add completion block for rbenv-help

pull/487/head^2
Jason Karns il y a 10 ans
Parent
révision
8c3cab61c7
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. +7
    -0
      libexec/rbenv-help

+ 7
- 0
libexec/rbenv-help Voir le fichier

@ -15,6 +15,13 @@
set -e
[ -n "$RBENV_DEBUG" ] && set -x
# Provide rbenv completions
if [ "$1" = "--complete" ]; then
echo --usage
rbenv-commands
exit
fi
command_path() {
local command="$1"
command -v rbenv-"$command" || command -v rbenv-sh-"$command" || true

Chargement…
Annuler
Enregistrer