feat(shell): setup rmv for a user local install

When running rmv on other linux installes other than Ubuntu its better
to install rmv for the user. This then gets installed in `~/.rvm`.

This now sets up the path so we can use rmv no matter what distro we are
on.
This commit is contained in:
Ade Attwood 2023-12-01 07:30:08 +00:00 committed by Ade Attwood
parent 3e07954682
commit a7774f9576

View file

@ -102,9 +102,12 @@ if [ -d "${PHPENV_ROOT}" ]; then
eval "$(phpenv init -)"
fi
# Ruby version manager (RVM)
# Ruby version manager (RVM), this can be installed for the system or user
# local.
if [ -f "/etc/profile.d/rvm.sh" ]; then
source "/etc/profile.d/rvm.sh"
elif [ -s "$HOME/.rvm/scripts/rvm" ]; then
. "$HOME/.rvm/scripts/rvm"
fi
if [ -d "$HOME/.local/share/adr-tools/src" ]; then