1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 23:33:45 -05:00

Rename rbenv-default to rbenv-global

This commit is contained in:
Sam Stephenson
2011-08-18 14:32:33 -05:00
parent 53d55eb08c
commit 5be66da9f4
9 changed files with 44 additions and 37 deletions

13
libexec/rbenv-global Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
RBENV_VERSION="$1"
RBENV_VERSION_FILE="${HOME}/.rbenv/global"
if [ -n "$RBENV_VERSION" ]; then
rbenv-version-file-write "$RBENV_VERSION_FILE" "$RBENV_VERSION"
else
rbenv-version-file-read "$RBENV_VERSION_FILE" ||
rbenv-version-file-read "${HOME}/.rbenv/default" ||
echo system
fi