Skip to content

Instantly share code, notes, and snippets.

@sachin-philip
Created March 13, 2022 18:55
Show Gist options
  • Save sachin-philip/ef899286cecbdb4c9db7223da5757a94 to your computer and use it in GitHub Desktop.
Save sachin-philip/ef899286cecbdb4c9db7223da5757a94 to your computer and use it in GitHub Desktop.
The base script to setup the system
#!/bin/sh
echo Base Pack Installer!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install Homebrew, nvm
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
echo "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" >> ~/.zshrc
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment