Last active
January 14, 2020 21:07
-
-
Save overthemike/744b3168e6c47af2ed6ee7eb8d2c110e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
NC='\033[0m' # No color | |
BLACK='\033[00;30' | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
ORANGE='\033[0;33m' | |
BLUE='\033[0;34m' | |
PURPLE='\033[0;35m' | |
CYAN='\033[0;36m' | |
LIGHTGRAY='\033[0;37m' | |
DARKGRAY='\033[1;30m' | |
LIGHTRED='\033[1;31m' | |
LIGHTGREEN='\033[1;32m' | |
YELLOW='\033[1;33m' | |
LIGHTBLUE='\033[1;34m' | |
LIGHTPURPLE='\033[1;35m' | |
LIGHTCYAN='\033[1;36m' | |
WHITE='\033[1;37m' | |
HOMEDIR=$(eval echo "~$whoami") | |
echo ${CYAN} ${ORANGE}Installing Command Line Tools\n" | |
command -v xcode-select --install | |
echo "${CYAN}Installing ${ORANGE}oh my zsh\n" | |
command -v sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# Check to see if Homebrew is installed, and install it if it is not | |
command -v brew >/dev/null 2>&1 || { echo >&2 "${CYAN}Installing ${ORANGE}Homebrew\n" \ | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" } | |
# Installing yarn will install node which will install npm | |
echo "${CYAN}Installing ${Orange}node${WHITE}, ${ORANGE}npm${WHITE}, and ${ORANGE}yarn\n" | |
command -v brew install yarn | |
echo "${CYAN}Fixing global npm path\n" | |
mkdir ~/.npm-packages | |
npm config set prefix '~/.npm-packages' | |
echo "export PATH=$HOMEDIR/.npm-packages/bin:$PATH" >> ~/.zshrc | |
command source ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment