pyenv/bin/rbenv-versions

18 lines
266 B
Text
Raw Normal View History

2011-08-01 16:50:26 -04:00
#!/bin/bash
2011-08-01 16:56:52 -04:00
set -e
2011-08-01 16:50:26 -04: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 17:43:19 -04:00
echo "* $version"
2011-08-01 16:50:26 -04:00
else
2011-08-01 17:43:19 -04:00
echo " $version"
2011-08-01 16:50:26 -04:00
fi
fi
done