Skip to content

Instantly share code, notes, and snippets.

@dart200
Last active January 14, 2021 13:37
Show Gist options
  • Save dart200/1f7fd4eeef55212ac3926c93b0b42c77 to your computer and use it in GitHub Desktop.
Save dart200/1f7fd4eeef55212ac3926c93b0b42c77 to your computer and use it in GitHub Desktop.
note on setting up mac dev env
install homebrew from website script
// setup fish
$ brew install fish
-> to /etc/shells add /usr/local/bin/fish
$ chsh -s /usr/local/bin/fish
// setup terminal
setup terminal
-> install ubuntu fonts
-> set ubuntu fonts as default
// install java
brew install --cask adoptopenjdk/openjdk/adoptopenjdk11
// setup n, node, and npm
$ brew install n
$ set -Ux N_PREFIX ~/.n
$ n install <version>
$ set -U fish_user_paths $N_PREFIX/bin $fish_user_paths
// install global npm packages
$ npm install -g git
$ npm install -g firebase-tools
// create github key using secure enclave
$ brew cask install sekey
$ set -Ux SSH_AUTH_SOCK $HOME/.sekey/ssh-agent.ssh ... debugging this setup
$ sekey --generate-keypair "github"
$ sekey --list-keys // get keyid
$ mkdir ~/.ssh
$ sekey --export-key [keyid] > ~/.ssh/github.pub
-> ~/.ssh/config add lines:
IdentityAgent ~/.sekey/ssh-agent.ssh
Host github.com
IdentityFile ~/.ssh/github.pub
IdentitiesOnly yes
-> copy ~/.ssh/github.pub to github account
install xcode
install vscode
-> download/install FiraCode fonts
install android env
//$ brew install node
$ brew install watchman
$ brew install --cask adoptopenjdk/openjdk/adoptopenjdk8
install sdk: https://reactnative.dev/docs/environment-setup
$ set -Ux ANDROID_HOME $HOME/Library/Android/sdk
$ set -U fish_user_paths $ANDROID_HOME/emulator $fish_user_paths
$ set -U fish_user_paths $ANDROID_HOME/tools $fish_user_paths
$ set -U fish_user_paths $ANDROID_HOME/tools/bin $fish_user_paths
$ set -U fish_user_paths $ANDROID_HOME/platform-tools $fish_user_paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment