Skip to content

Instantly share code, notes, and snippets.

@joelcuevas
Last active May 27, 2018 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelcuevas/74e824ecbd7dba80c8b1fd211a91b9d2 to your computer and use it in GitHub Desktop.
Save joelcuevas/74e824ecbd7dba80c8b1fd211a91b9d2 to your computer and use it in GitHub Desktop.
Homestead provisioning script
#!/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/nano_provisioning ]; then
#--------------
# git basic config
#--------------
git config --global alias.b branch
git config --global alias.c commit
git config --global alias.co checkout
git config --global alias.m merge
git config --global alias.s status
git config --global alias.a "add . -A"
git config --global push.default simple
git config --global user.name "Joel Cuevas"
git config --global user.email hola@joelcuevas.com
git config --global core.editor "vim"
git config --global mergetool.keepbackup false
echo 'export GIT_MERGE_AUTOEDIT=no' >> ~/.profile
git config --global core.mergeoptions --no-edit
git config --list
#--------------
# case-insensitive console
#--------------
echo set completion-ignore-case on | sudo tee -a /etc/inputrc
#--------------
# mysql mexico_city timezon
#--------------
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u homestead -psecret mysql
#--------------
# pullr
#--------------
sudo npm install -g pullr
#--------------
# zsh
#--------------
sudo apt-get --assume-yes install zsh
sudo sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo sed -i '$a source ~/.bash_aliases' ~/.zshrc
sudo chsh -s /usr/bin/zsh vagrant
#--------------
# gitflow
#--------------
curl -OL https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh
chmod +x gitflow-installer.sh
sudo ./gitflow-installer.sh
#--------------
# http server
#--------------
sudo npm install http-server -g
# provisioned!
sudo touch /usr/local/nano_provisioning
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment