Skip to content

Instantly share code, notes, and snippets.

@CheezItMan
Last active November 17, 2021 16:53
Show Gist options
  • Save CheezItMan/b9d50dc720051264be614e21c99a7a63 to your computer and use it in GitHub Desktop.
Save CheezItMan/b9d50dc720051264be614e21c99a7a63 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Below is a script used at Ada to install needed software and some optional packages (Firefox Chrome etc).
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add path for homebrew to ~/.zshrc file
echo "export PATH=$PATH:/opt/homebrew/bin/" >> ~/.zshrc
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
eval "$(/opt/homebrew/bin/brew shellenv)"
# Get the updated path for homebrew
source ~/.zshrc
# Then install python
brew install python
# Make it run Python3 when the user types "python"
echo "alias python=python3" >> ~/.zshrc
echo "alias python=python3" >> ~/.profile
# Make it run pip3 when the user types "pip"
echo "alias pip=pip3" >> ~/.zshrc
echo "alias pip=pip3" >> ~/.profile
# Get the updated path for python3
source ~/.zshrc
# Set up git
brew install git
git config --global core.ignorecase false
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global push.default current
git config --global pull.rebase false
git config --global core.editor "code --wait"
# Install Node
brew install node
# Install yarn
brew install yarn
# Install VS Code
brew install --cask visual-studio-code
# Install Firefox & Chrome
brew install --cask firefox
brew install --cask google-chrome
brew install --cask slack
echo "Installation complete!"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment