Skip to content

HTTPS clone URL

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.
dev="$HOME/Development"
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/id_rsa.pub' ]] || ssh-keygen -t rsa
echo "Copying public key to clipboard. Paste it into your Github account..."
[[ -f '~/.ssh/id_rsa.pub' ]] && cat '~/.ssh/id_rsa.pub' | pbcopy
open 'https://github.com/account/ssh'
if [[ `uname` == 'Darwin' ]]; then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
brew update
echo "Installing NPM..."
curl http://npmjs.org/install.sh | sh
echo "OS X tweaking..."
# echo "Disabling useless Safari page previews..."
# defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
# echo "Disabling warning dialogue on downloaded applications..."
# defaults write com.apple.LaunchServices LSQuarantine -bool NO
echo "Changing default screenshot location to ~/Downloads/..."
defaults write com.apple.screencapture location ~/Downloads/
killall SystemUIServer
fi
echo "Symlinking config files..."
source symlink_dotfiles
popd
Jump to Line
Something went wrong with that request. Please try again.