Skip to content

Instantly share code, notes, and snippets.

@alexd73
Created February 8, 2019 14:37
Show Gist options
  • Save alexd73/3414b82fec58b32cbb6b5b52c637dd88 to your computer and use it in GitHub Desktop.
Save alexd73/3414b82fec58b32cbb6b5b52c637dd88 to your computer and use it in GitHub Desktop.
export CUSTOM_BARRIO=$1 # change this to your custom theme_name
cp -r ../contrib/bootstrap_sass $CUSTOM_BARRIO
cd $CUSTOM_BARRIO
for file in *bootstrap_sass.*; do mv $file ${file//bootstrap_sass/$CUSTOM_BARRIO}; done
for file in config/*/*bootstrap_sass.*; do mv $file ${file//bootstrap_sass/$CUSTOM_BARRIO}; done
grep -Rl bootstrap_sass .|xargs sed -i'' -e "s/bootstrap_sass/$CUSTOM_BARRIO/"
grep -Rl bootstrap_barrio .|xargs sed -i'' -e "s/bootstrap_barrio/$CUSTOM_BARRIO/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment