Some changes from work machine
This commit is contained in:
committed by
Vasili Svirydau
parent
6b2245dd16
commit
e743c663ac
11
bash.d/20-nvm.sh
Normal file
11
bash.d/20-nvm.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if test -d ~/.nvm; then
|
||||
NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||
export NVM_DIR
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
fi
|
||||
|
||||
function dotfiles_install_nvm() {
|
||||
git clone git@github.com:nvm-sh/nvm.git ~/.nvm
|
||||
}
|
||||
Reference in New Issue
Block a user