Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Last active November 24, 2017 01:07
Show Gist options
  • Select an option

  • Save gregjhogan/d0bba242511469bec15c30f2bad99458 to your computer and use it in GitHub Desktop.

Select an option

Save gregjhogan/d0bba242511469bec15c30f2bad99458 to your computer and use it in GitHub Desktop.
macOS setup
#!/bin/bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
brew tap caskroom/versions
brew install node git bash-completion tmux
brew cask install xquartz docker visual-studio-code google-chrome firefox slack spotify
# enable X11 Preferences -> Security -> Allow connections from network clients
# http://sourabhbajaj.com/blog/2017/02/07/gui-applications-docker-mac/
open -a XQuartz
# setup docker (this command will initiate the setup process
open -a docker
# update npm
npm update npm -g
# install vs code extensions
code --install-extension johnpapa.angular-essentials
code --install-extension eamodio.gitlens
# android development
brew cask install java8
brew cask install android-sdk android-ndk
sdkmanager --update
# npm remote repo
# npm config set registry https://...
# profile
cat <<EOF > ~/.bash_profile
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
GIT_PS1_SHOWDIRTYSTATE=true
PS1='\[\033[1;32m\]\u \[\033[0;36m\]\w\[\033[1;33m\]\$(__git_ps1)\n\[\033[0m\]$ '
export CLICOLOR=1
export GREP_OPTIONS="--color=auto"
export GREP_COLOR="1;32"
alias ls='ls -GFh'
EOF
# locate
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
# ssh
# (add key to keychain)
# ssh-add -K /path/to/private/key
# (copy in ssh config)
# mkdir ~/.ssh/multi
# chmod 600 ~/.ssh/*
# chmod 700 ~/.ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment