1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14:53:53 -05:00

add completion block for rbenv-help

This commit is contained in:
Jason Karns
2015-11-13 15:06:29 -05:00
parent c18a3f9042
commit 8c3cab61c7

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