Skip to content

Instantly share code, notes, and snippets.

@sea-witch
Created November 30, 2015 03:18
Show Gist options
  • Save sea-witch/e7b571ce4848d7133661 to your computer and use it in GitHub Desktop.
Save sea-witch/e7b571ce4848d7133661 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo 'Are you sure you want to do this? (y)'
read RESPONSE
if [ "$RESPONSE" == "y" ]; then
cd ~/dev
echo 'Name your project (no-spaces-please)':
read NAME
mkdir $NAME
cd $NAME
touch ./index.html
echo '<!DOCTYPE html>' >> ./index.html
echo '<html>' >> ./index.html
echo ' <head>' >> ./index.html
echo ' <meta charset="utf-8">' >> ./index.html
echo ' <title>'$NAME'</title>' >> ./index.html
echo ' </head>' >> ./index.html
echo ' <body>' >> ./index.html
echo ' <h1>'$NAME'</h1>' >> ./index.html
echo ' </body>' >> ./index.html
echo '</html>' >> ./index.html
mkdir js
touch js/main.js
mkdir css
touch css/master.css
git init
git add -A
git commit -m 'Initial commit.'
atom .
http-server http://localhost:8080/
exit 1;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment