Skip to content

Instantly share code, notes, and snippets.

@TheWass
Last active March 30, 2018 16:58
Show Gist options
  • Save TheWass/cf9362cb96e97290963b597762abbdc4 to your computer and use it in GitHub Desktop.
Save TheWass/cf9362cb96e97290963b597762abbdc4 to your computer and use it in GitHub Desktop.
What to do when setting up a Mac:

Mac Setup and Configuration Instructions

Install App Store Apps

Install Xcode, Remote Desktop, and Slack from the App Store
Wait until Xcode is complete
Run the following:

touch ~/.bash_profile
xcode-select --install
defaults write com.apple.finder AppleShowAllFiles YES

Control-option click finder and click relaunch

Install a better terminal

Install iterm2 from here: https://www.iterm2.com/downloads.html Then run:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install node and npm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
nvm install node
npm install -g npm

Install ionic and cordova

npm install -g cordova ionic
npm install -g ios-deploy

Install and configure Android Studio + JDK

https://developer.android.com/studio/index.html
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Note: Android does not support JDK9. Download some version of JDK8
Append the following into ~/.bash_profile:

export ANDROID_HOME=/Users/$USER/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin

Run: source ~/.bash_profile
Open Android studio and download every SDK from KitKat on. The ones you download are the ones that you can target. Run: sudo chmod 755 /Applications/Android\ Studio.app/Contents/gradle/gradle-4.4/bin/gradle to make Gradle accessible to ionic/cordova.

ssh keygen for bitbucket/github

run ssh-keygen and hit enter three times (defaults for all).
Upload the id_rsa.pub to bitbucket/github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment