Skip to content

Instantly share code, notes, and snippets.

@preeteshjain
Created October 2, 2018 18:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save preeteshjain/62fcc16835f633c304d23ffef80be92f to your computer and use it in GitHub Desktop.
Save preeteshjain/62fcc16835f633c304d23ffef80be92f to your computer and use it in GitHub Desktop.
SMD Function
smd() {
if [ $1 = "a" ]
then
homestead up
cd /e/homestead_projects/project
subl .
explorer .
python -mwebbrowser "http://project.test"
python -mwebbrowser "http://phpmyadmin.test/db_structure.php?server=1&db=project_db"
npm run watch
elif [ $1 = "b" ]
then
homestead up
cd /e/homestead_projects/project2
subl .
explorer .
python -mwebbrowser "http://project2.test"
python -mwebbrowser "http://phpmyadmin.test/db_structure.php?server=1&db=project2_db"
npm run watch
elif [ $1 = "c" ]
then
cd /e/other_projects/some-website
subl .
explorer .
python -mwebbrowser "http://localhost:8000"
npm run serve
else
echo "PLEASE PROVIDE AN ARGUMENT FIRST!"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment