mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge pull request #821 from jasonkarns/help-completion
add completion block for rbenv-help
This commit is contained in:
commit
14655a43c8
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue