Skip to content

Instantly share code, notes, and snippets.

@ifiokjr
Last active June 17, 2018 07:21
Show Gist options
  • Save ifiokjr/b91f9a673c6c574de9a60b4ca8546c80 to your computer and use it in GitHub Desktop.
Save ifiokjr/b91f9a673c6c574de9a60b4ca8546c80 to your computer and use it in GitHub Desktop.
Simple script for installing essentials on a new mac
#!usr/bin/env sh
## Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
brew install wget
## Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
## Install NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install 10
nvm install 9
nvm alias latest 10
curl -o- -L https://yarnpkg.com/install.sh | bash
yarn global add react-native-cli ember-cli babel-cli \
typescript create-react-app react-devtools speed-test tslint spaceship-zsh-theme
## Update Git
brew update && brew upgrade
brew install git
brew link --force git
git --version
# Install chrome, iterm, others
brew tap caskroom/versions
brew cask install java8
brew cask install android-sdk
brew cask install android-studio
brew cask install android-ndk
## Append environment details to file - assumes prior installation of oh-my-zsh
cat <<EOT >> ~/.zshrc
# Android SDK
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
export ANDROID_SDK=/usr/local/share/android-sdk
export ANDROID_HOME=/usr/local/share/android-sdk
export ANDROID_NDK_HOME="/usr/local/share/android-ndk"
export ANDROID_NDK="/usr/local/share/android-ndk"
export PATH="$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/tools/bin:$PATH"
# Clean up Node Modules in Coding Folder
alias removeNodeModules="find $HOME/Coding -print -name \"node_modules\" -type d -exec rm -rf '{}' +"
# Set up showing files
# http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
alias yui="yarn upgrade-interactive --latest"
alias ygui="yarn global upgrade-interactive --latest"
EOT
brew cask install google-chrome
brew cask install firefox
brew cask install opera
brew cask install iterm2
brew cask install bettertouchtool
brew cask install evernote
brew cask install slack
brew cask install visual-studio-code
brew cask install virtualbox
brew cask install steam
brew cask install bartender
brew cask install android-studio
brew cask install android-sdk
# brew cask install unity
brew cask install obs
brew cask install google-backup-and-sync
brew cask install charles
brew cask install docker
# brew cask install docker-toolbox
# brew cask install rstudio
# brew cask install timing
# brew cask install virtualbox
# brew cask install parallels-desktop
# brew cask install teamviewer
brew cask install postman
# brew cask install the-unarchiver
brew cask install flux
brew cask install react-native-debugger
brew tap caskroom/fonts
brew cask install font-fira-code
brew cask install font-ibm-plex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment