Skip to content

Instantly share code, notes, and snippets.

@kaleem-elahi
Created October 15, 2021 17:19
Show Gist options
  • Save kaleem-elahi/55e741edda262a6e8dbbaa2a52bed27a to your computer and use it in GitHub Desktop.
Save kaleem-elahi/55e741edda262a6e8dbbaa2a52bed27a to your computer and use it in GitHub Desktop.
mac_setup.sh
#Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#Install Xcode command line tools
read -rep "Installing Developer Tools, Press any key to continue..." -n1 -s
xcode-select --install
#Install homebrew
read -rep "Installing Homebrew, Press any key to continue..." -n1 -s
sudo chown -R $(whoami) /usr/local/var/homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#Install fish shell
read -rep "Installing Fish shell, Press any key to continue..." -n1 -s
brew install fish
#Install node
read -rep "Installing NodeJS, Press any key to continue..." -n1 -s
brew install node
#Install Visual Code
read -rep "Installing Visual Studio Code, Press any key to continue..." -n1 -s
brew install visual-studio-code
#Install Java Runtime
read -rep "Installing java, Press any key to continue..." -n1 -s
brew install java
echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/usr/local/opt/openjdk/include' >> ~/.zshrc
#Setup Cocoapods
read -rep "Installing CocoaPods, Press any key to continue..." -n1 -s
sudo gem install cocoapods
gem which cocoapods
## Set NPM token
echo "Setting NPM token..."
echo 'export NPM_TOKEN="e87357e6-050a-493f-92b6-169c644a1d0e"' >> ~/.zshrc
# Install Jekyll
read -rep "Installing jekyll, Press any key to continue..." -n1 -s
sudo gem install bundler jekyll
#Setup workarea folders
cd ~
echo "Setting up workarea folder structure"
mkdir workarea
mkdir workarea/yapsody/gitlab/react
mkdir workarea/yapsody/gitlab/qa
# gitlab source
read -rep "Cloning GitLab repositories, Press any key to continue..." -n1 -s
cd ~/workarea/yapsody/gitlab
echo $PWD
git clone git@gitlab.com-yapsody:yapsody/handbook.git
cd ~/workarea/yapsody/gitlab/aws
echo $PWD
git clone git@gitlab.com-yapsody:yapsody/aws/yap-cloud-formation.git
cd ~/workarea/yapsody/gitlab/react
echo $PWD
git clone git@gitlab.com-yapsody:yapsody/react/yap-components.git
git clone git@gitlab.com-yapsody:yapsody/react/sample-project.git
git clone git@gitlab.com-yapsody:yapsody/react/presenter-interface.git
cd ~/workarea/yapsody/gitlab/qa
echo $PWD
git clone git@gitlab.com-yapsody:yapsody/qa/test-suite.git
#Download 1password7
echo "Opening AppStore for 1Password 7 installation"
open "https://apps.apple.com/in/app/1password-7-password-manager/id1333542190?mt=12"
read -rep "Install 1Password7 from AppStore and Press any key to continue..." -n1 -s
#Install SequelPro
echo "Downloading SequelPro setup..."
curl --location --output ~/Downloads/SequelPro-1.1.2.dmg https://github.com/sequelpro/sequelpro/releases/download/release-1.1.2/sequel-pro-1.1.2.dmg
open ~/Downloads/SequelPro-1.1.2.dmg
#Install MacCleaner
echo "Downloading MacCleaner setup..."
curl --location --output ~/Downloads/AppCleaner_3.5.zip https://freemacsoft.net/downloads/AppCleaner_3.5.zip
#Install Mac Fan controller
echo "Open download page for Mac Fan Controller..."
open "https://crystalidea.com/macs-fan-control/download"
#Google chat
echo "Open download page for Google Chat..."
open "https://chat.google.com/download/"
echo "Open download page for Firefox..."
open "https://www.mozilla.org/en-US/firefox/new/"
echo "Open download page for Zoom..."
open "https://zoom.us/download"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment