pyenv/libexec/rbenv-versions

16 lines
269 B
Plaintext
Raw Normal View History

2011-08-02 19:11:41 -04:00
#!/usr/bin/env bash -e
2011-08-01 15:56:52 -05:00
2011-08-01 15:50:26 -05:00
RBENV_VERSION="$(rbenv-version)"
for path in ~/.rbenv/versions/*; do
if [ -d "$path" ]; then
version="${path##*/}"
if [ "$version" == "$RBENV_VERSION" ]; then
2011-08-01 16:43:19 -05:00
echo "* $version"
2011-08-01 15:50:26 -05:00
else
2011-08-01 16:43:19 -05:00
echo " $version"
2011-08-01 15:50:26 -05:00
fi
fi
done