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:
13
libexec/rbenv-global
Executable file
13
libexec/rbenv-global
Executable 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
|
||||
Reference in New Issue
Block a user