1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-17 07:43:46 -05:00

Merge pull request #821 from jasonkarns/help-completion

add completion block for rbenv-help
This commit is contained in:
Mislav Marohnić
2015-11-13 17:37:09 -05:00

View File

@@ -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