Skip to content

Instantly share code, notes, and snippets.

@bugsysop
Created October 20, 2012 21:38
Show Gist options
  • Select an option

  • Save bugsysop/3924906 to your computer and use it in GitHub Desktop.

Select an option

Save bugsysop/3924906 to your computer and use it in GitHub Desktop.
Getting Started With the _s Theme
#!/bin/sh
# Joel Kirchartz
# http://themeshaper.com/2012/02/21/getting-started-with-the-underscores-theme/comment-page-1/#comment-73697
printf "What do you want to name your _s theme? "
read -e NAME
cp -rf _s $NAME
find ./$NAME/ -type f | xargs perl -pi -e "s/'_s'/'$NAME'/g"
find ./$NAME/ -type f | xargs perl -pi -e "s/_s_/$NAME_/g"
find ./$NAME/ -type f | xargs perl -pi -e "s/ _s/ $NAME/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment