From 3cb95b4d2da9901e1f1988dd31aa531817a43768 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 23 Jan 2013 19:06:08 -0600 Subject: [PATCH] Add `rbenv --debug ` as a shortcut for setting RBENV_DEBUG=1 --- libexec/rbenv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libexec/rbenv b/libexec/rbenv index 93089fe..05302e8 100755 --- a/libexec/rbenv +++ b/libexec/rbenv @@ -1,11 +1,16 @@ #!/usr/bin/env bash set -e +if [ "$1" = "--debug" ]; then + export RBENV_DEBUG=1 + shift +fi if [ -n "$RBENV_DEBUG" ]; then export PS4='+ [${BASH_SOURCE##*/}:${LINENO}] ' set -x fi + resolve_link() { $(type -p greadlink readlink | head -1) "$1" }