Last active
January 29, 2021 19:04
-
-
Save CheezItMan/2c883fc0c43ab44a5554d663995fe92e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# We'll be installing Homebrew in the /opt directory. | |
cd /opt | |
# Create a directory for Homebrew. This requires root permissions. | |
sudo mkdir homebrew | |
# Make us the owner of the directory so that we no longer require root permissions. | |
sudo chown -R $(whoami) /opt/homebrew | |
# Download and unzip Homebrew. This command can be found at https://docs.brew.sh/Installation. | |
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew | |
# Add the Homebrew bin directory to the PATH. If you don't use zsh, you'll need to do this yourself. | |
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc | |
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.profile | |
# Get the updated path for homebrew | |
source ~/.zshrc | |
source ~/.profile | |
# 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 | |
source ~/.profile | |
# Set up git | |
brew install git | |
# Read in their name & email address | |
echo "" | |
echo "Please enter your name" | |
read studentname | |
echo "" | |
echo "Please enter the email address you use with github" | |
read studentemail | |
git config --global user.name $studentname | |
git config --global user.email $studentemail | |
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" | |
echo "Verification: This should print your name and email" | |
git config --get user.name | |
git config --get user.email | |
# Install Node | |
brew install node | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment