From 3b13dc9c144b62641ee04872b9090580000f242f Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 3 Aug 2011 22:20:01 -0500 Subject: [PATCH] Add rbenv-commands --- libexec/rbenv-commands | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 libexec/rbenv-commands 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 +