Created
May 6, 2015 10:04
-
-
Save AaronRutley/1c584907d206068a03d5 to your computer and use it in GitHub Desktop.
chassis create
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
#chassis | |
alias chassis='function _chassis(){ | |
if [ $1 = "create" ]; then | |
cd ~/Vagrant-local; | |
git clone --recursive https://github.com/Chassis/Chassis $2; | |
rm -rf .git; | |
cd $2; | |
git clone https://aaronrutley@bitbucket.org/aaronrutley/turbo.git content; | |
cd content; | |
rm -rf .git; | |
git init; | |
git add --all; | |
git commit -am "$2 initial commit"; | |
subl config.yaml; | |
echo "###"; | |
echo "Project: $2 has been created"; | |
echo "Update hosts in config.yaml" | |
echo "Then vagrant up"; | |
echo "Then visit $2.local"; | |
fi | |
};_chassis' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment