Last active
June 3, 2017 08:44
-
-
Save ignasbernotas/9257b58e439fb934b1f07539f84e250f to your computer and use it in GitHub Desktop.
OSX Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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