node fix
This commit is contained in:
parent
2f34a664ba
commit
3044fb774b
@ -10,8 +10,10 @@ if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
# 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
|
cat >> ~/.bashrc << EOT
|
||||||
sudo -u $SUDO_USER echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
|
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
|
source ~/.bashrc
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user