Created
October 2, 2018 18:50
-
-
Save preeteshjain/62fcc16835f633c304d23ffef80be92f to your computer and use it in GitHub Desktop.
SMD Function
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
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