mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 20:44:13 +00:00
17 lines
266 B
Bash
Executable file
17 lines
266 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -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
|