This commit is contained in:
Ryan Bakkes 2022-10-08 01:20:42 +02:00
parent 2f34a664ba
commit 3044fb774b

View File

@ -10,8 +10,10 @@ if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
fi
# always put in bashrc aswell, so that the user can always rely on the standard shell
sudo -u $SUDO_USER echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
sudo -u $SUDO_USER echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
cat >> ~/.bashrc << EOT
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" # This loads nvm
EOT
source ~/.bashrc