You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
593 B
Cheetah
27 lines
593 B
Cheetah
2 years ago
|
{{ if lookPath "rbenv" -}}
|
||
3 years ago
|
# shellcheck shell=sh
|
||
3 years ago
|
|
||
|
if [ "${RBENV_SHELL}" = "" ]; then
|
||
|
if command -v rbenv >/dev/null 2>&1 ; then
|
||
|
eval "$(rbenv init -)"
|
||
|
fi
|
||
|
fi
|
||
2 years ago
|
{{- end }}
|
||
3 years ago
|
|
||
2 years ago
|
{{ if lookPath "rvm" -}}
|
||
3 years ago
|
if [ -d "${HOME}/.rvm/bin" ]; then
|
||
|
case "${PATH}" in
|
||
|
*"$HOME/.rvm/bin"*) ;;
|
||
|
*) export PATH="$PATH:$HOME/.rvm/bin" ;;
|
||
|
esac
|
||
|
fi
|
||
|
|
||
|
if [ "$(ps -p $$ -ocomm=)" = sh ]; then
|
||
|
if [ -f "$HOME/.rvm/scripts/rvm" ]; then
|
||
|
# Load RVM into a shell session *as a function*
|
||
|
# shellcheck disable=SC1091
|
||
|
. "$HOME/.rvm/scripts/rvm"
|
||
|
fi
|
||
|
fi
|
||
2 years ago
|
{{- end }}
|