From 5151bc04db891a2ae16cd496cd5dc9564546dec3 Mon Sep 17 00:00:00 2001 From: "Luiz \"Bills" Date: Mon, 6 Jun 2022 10:40:57 -0300 Subject: [PATCH] Update .bashrc.sh --- conf/.bashrc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/.bashrc.sh b/conf/.bashrc.sh index 1730c73..838b6d6 100644 --- a/conf/.bashrc.sh +++ b/conf/.bashrc.sh @@ -39,7 +39,6 @@ function wp-setup () { wp-init-database 1> /dev/null # install WordPress - rm -rf ${GITPOD_REPO_ROOT}/${APACHE_DOCROOT} mkdir -p ${GITPOD_REPO_ROOT}/${APACHE_DOCROOT} cd ${GITPOD_REPO_ROOT}/${APACHE_DOCROOT}/ @@ -145,6 +144,10 @@ export -f browse-dbadmin export -f browse-phpinfo export -f browse-emails +# load NVM +export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + # use Node.js LTS nvm use lts/* > /dev/null export NODE_VERSION=$(node -v | sed 's/v//g')