Last active
September 14, 2017 22:25
-
-
Save lgalaz/3e629f250f1c0b04c211 to your computer and use it in GitHub Desktop.
Laravel after.sh
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 | |
# If you would like to do some extra provisioning you may | |
# add any commands you wish to this file and they will | |
# be run after the Homestead machine is provisioned. | |
# Update app-get | |
sudo apt-get update | |
# Install Java, Firefox and Xvfb | |
sudo apt-get install -y openjdk-7-jre firefox xvfb | |
# Install Selenium Standalone Server | |
npm install selenium-standalone@2.44.0 -g | |
selenium-standalone install --version=2.44.0 --baseURL=https://selenium-release.storage.googleapis.com | |
git config --global user.name "Luis Galaz" | |
git config --global user.email lgalaz@gmail.com | |
git config --global push.default matching | |
sudo apt-get install zsh -y | |
git clone git://github.com/robbyrussell/oh-my-zsh.git /home/vagrant/.oh-my-zsh | |
cp /home/vagrant/.oh-my-zsh/templates/zshrc.zsh-template /home/vagrant/.zshrc | |
chsh -s /usr/bin/zsh vagrant | |
sed -i 's/robbyrussell/afowler/g' /home/vagrant/.zshrc | |
echo 'alias mro="php artisan migrate:rollback"' >> /home/vagrant/.zshrc | |
echo 'alias mig="php artisan migrate"' >> /home/vagrant/.zshrc | |
echo 'alias dbs="php artisan db:seed"' >> /home/vagrant/.zshrc | |
echo 'alias refresh="php artisan migrate:refresh --seed"' >> /home/vagrant/.zshrc | |
echo 'alias openmysql="mysql -u homestead -psecret"' >> /home/vagrant/.zshrc | |
echo 'alias selenium-start="xvfb-run --server-args=\"-screen 0, 1366x768x24\" selenium-standalone start"' >> /home/vagrant/.zshrc | |
echo 'alias phpunit="vendor/bin/phpunit"' >> /home/vagrant/.zshrc | |
echo 'alias phpspec="vendor/bin/phpspec"' >> /home/vagrant/.zshrc | |
echo 'alias xoff="sudo phpdismod -s cli xdebug"' >> /home/vagrant/.zshrc | |
echo 'alias xon="sudo phpenmod -s cli xdebug"' >> /home/vagrant/.zshrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment