Zen
3 years ago
5 changed files with 66 additions and 10 deletions
@ -0,0 +1,39 @@ |
|||||||
|
#!/bin/sh |
||||||
|
# Bare Metal Alchemist, 2022 |
||||||
|
|
||||||
|
############################################# |
||||||
|
# Iron - ♂ # |
||||||
|
############################################# |
||||||
|
|
||||||
|
# Iron is the most common element found on our planet, and an element |
||||||
|
# that we, as a species, frequently rely on to build our tools and |
||||||
|
# our society as a whole. |
||||||
|
|
||||||
|
# This ingredient contains functions for building web applications and |
||||||
|
# installing common frameworks. Expect to use this one a lot if you're |
||||||
|
# writing alchemy recipes! |
||||||
|
|
||||||
|
install_nodejs() { |
||||||
|
echo -e "${BOLD}Installing Node.js${RESET}" |
||||||
|
chmod +x scripts/nvm_install.sh |
||||||
|
scripts/nvm_install.sh |
||||||
|
|
||||||
|
export NVM_DIR="$HOME/.nvm" |
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
||||||
|
|
||||||
|
# if [ "$SHELL" = '/bin/zsh' ]; then |
||||||
|
# echo 'sourcing zshrc' |
||||||
|
# source ~/.zshrc |
||||||
|
# else |
||||||
|
# source ~/.bashrc |
||||||
|
# fi |
||||||
|
} |
||||||
|
|
||||||
|
set_node_to() { |
||||||
|
nvm install v16.13.0 |
||||||
|
nvm alias default v16.13.0 |
||||||
|
nvm use default |
||||||
|
} |
||||||
|
|
||||||
|
|
Loading…
Reference in new issue