Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5c70f94612
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (33 sloc) 1.314 kb
#!/usr/bin/env zsh
# A simple script for setting up OSX dev environment.
pushd .
mkdir -p $dev
cd $dev
echo "Enter new hostname of the machine"
read hostname
echo "Setting new hostname..."
scutil –set HostName "$hostname"
echo "Checking for SSH key, generating one if it doesn't exist..."
[[ -f '~/.ssh/' ]] || ssh-keygen -t rsa
echo "Copying public key to clipboard. Paste it into your Github account..."
[[ -f '~/.ssh/' ]] && cat '~/.ssh/' | pbcopy
open ''
if [[ `uname` == 'Darwin' ]]; then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL"
brew update
echo "Installing NPM..."
curl | sh
echo "OS X tweaking..."
# echo "Disabling useless Safari page previews..."
# defaults write DebugSnapshotsUpdatePolicy -int 2
# echo "Disabling warning dialogue on downloaded applications..."
# defaults write LSQuarantine -bool NO
echo "Changing default screenshot location to ~/Downloads/..."
defaults write location ~/Downloads/
killall SystemUIServer
echo "Symlinking config files..."
source symlink_dotfiles
Jump to Line
Something went wrong with that request. Please try again.