diff --git a/libexec/rbenv b/libexec/rbenv index a1b9d69..070c441 100755 --- a/libexec/rbenv +++ b/libexec/rbenv @@ -7,7 +7,8 @@ if [ "$1" = "--debug" ]; then fi if [ -n "$RBENV_DEBUG" ]; then - export PS4='+ [${BASH_SOURCE##*/}:${LINENO}] ' + # https://wiki-dev.bash-hackers.org/scripting/debuggingtips#making_xtrace_more_useful + export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' set -x fi