Skip to content

Instantly share code, notes, and snippets.

@ignasbernotas
Last active June 3, 2017 08:44
Show Gist options
  • Save ignasbernotas/9257b58e439fb934b1f07539f84e250f to your computer and use it in GitHub Desktop.
Save ignasbernotas/9257b58e439fb934b1f07539f84e250f to your computer and use it in GitHub Desktop.
OSX Setup
#!/bin/sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
brew cask install google-chrome iterm2 sequel-pro vagrant virtualbox slack spotify boom bettertouchtool vlc phpstorm basecamp bittorrent zsh
brew install git
mv /usr/local/Caskroom/bittorrent/latest/Bittorrent.app /Applications/Bittorrent.app
# run this in iterm as well
chsh -s /usr/local/bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# setup homestead
vagrant box add laravel/homestead
cd ~
git clone https://github.com/laravel/homestead.git Homestead
cd Homestead
bash init.sh
cd ~
mv Homestead Documents/Dev/Homestead
echo "plugins=(git brew laravel4 vagrant)" >> ~/.zshrc
echo 'ZSH_THEME="pygmalion"' >> ~/.zshrc
echo 'alias homestead-up="cd ~/Documents/Dev/Homestead/ && vagrant up && homestead"' >> ~/.zshrc
echo 'alias homestead-down="cd ~/Documents/Dev/Homestead/ && vagrant halt"' >> ~/.zshrc
echo 'alias homestead-provision="cd ~/Documents/Dev/Homestead/ && vagrant provision"' >> ~/.zshrc
echo 'alias homestead="ssh vagrant@127.0.0.1 -p 2222"' >> ~/.zshrc
echo 'alias homestead-edit="nano ~/Documents/Dev/Homestead/Homestead.yaml"' >> ~/.zshrc
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment