pyenv/libexec/rbenv-versions
2011-08-02 18:01:46 -05:00

15 lines
261 B
Bash
Executable file

#!/bin/bash -e
RBENV_VERSION="$(rbenv-version)"
for path in ~/.rbenv/versions/*; do
if [ -d "$path" ]; then
version="${path##*/}"
if [ "$version" == "$RBENV_VERSION" ]; then
echo "* $version"
else
echo " $version"
fi
fi
done