✨ Add nvm/node
This commit is contained in:
parent
7b2ed61e84
commit
d203fe642a
2 changed files with 17 additions and 2 deletions
15
node/install.sh
Executable file
15
node/install.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# vim:set ft=bash:
|
||||||
|
|
||||||
|
cd "$(dirname "${BASH_SOURCE[0]}")" \
|
||||||
|
&& source "../script/utils.sh"
|
||||||
|
|
||||||
|
if ! [[ -d "~/.zsh-plugins/zsh-nvm" ]]; then
|
||||||
|
execute \
|
||||||
|
"git clone https://github.com/lukechilds/zsh-nvm.git ~/.zsh-plugins/zsh-nvm" \
|
||||||
|
"zsh-nvm"
|
||||||
|
fi
|
||||||
|
|
||||||
|
execute "nvm install lts/iron" "Node.js 20.x"
|
||||||
|
|
||||||
|
execute "nvm install lts/hydrogen" "Node.js 18.x"
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
export NVM_HOMEBREW="$(brew --prefix nvm)"
|
export NVM_COMPLETION=true
|
||||||
zstyle ':omz:plugins:nvm' autoload yes
|
source ~/.zsh-plugins/zsh-nvm/zsh-nvm.plugin.zsh
|
||||||
|
|
Loading…
Reference in a new issue