pyenv/bin/rbenv-versions

16 lines
270 B
Text
Raw Normal View History

2011-08-01 20:50:26 +00:00
#!/bin/bash
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