pyenv/bin/rbenv-versions

16 lines
261 B
Text
Raw Normal View History

2011-08-02 22:43:43 +00:00
#!/bin/bash -e
2011-08-01 20:56:52 +00:00
2011-08-01 20:50:26 +00: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 21:43:19 +00:00
echo "* $version"
2011-08-01 20:50:26 +00:00
else
2011-08-01 21:43:19 +00:00
echo " $version"
2011-08-01 20:50:26 +00:00
fi
fi
done