Last active
August 29, 2015 14:18
-
-
Save dakira/076e205336c069ebec16 to your computer and use it in GitHub Desktop.
homstead script to run after provisioning
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. | |
if [ ! -f /usr/local/extra_homestead_software_installed ]; then | |
apt-get -y install zsh joe-jupp | |
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 | |
sudo chsh -s $(which zsh) vagrant | |
echo 'export PATH=vendor/bin:$PATH' >> /home/vagrant/.zshrc | |
echo "alias art='php artisan'" >> /home/vagrant/.zshrc | |
sed -i "s/plugins=(git)/plugins=(git composer laravel5)/" /home/vagrant/.zshrc | |
sudo -u vagrant -H git config --global user.name 'Matthias Niess' | |
sudo -u vagrant -H git config --global user.email [email protected] | |
sudo -u vagrant -H git config --global color.ui true | |
sudo -u vagrant -H git config --global alias.ll 'log --pretty=format:"%C(auto)%h %s"' | |
touch /usr/local/extra_homestead_software_installed | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment