diff --git a/libexec/rbenv-commands b/libexec/rbenv-commands new file mode 100755 index 00000000..49ba268b --- /dev/null +++ b/libexec/rbenv-commands @@ -0,0 +1,11 @@ +#!/usr/bin/env bash -e + +shopt -s nullglob + +{ for path in ${PATH//:/$'\n'}; do + for command in "${path}/rbenv-"*; do + echo "${command##*rbenv-}" + done + done +} | sort | uniq +