I want make a shell script to startup my project env. I'm using ITerm2 with zsh and oh-my-zsh installed.
I want to:
- Open directory
- Activate python virtualenv
- Run django manage command
- Switch to the new tab
- change directory
- Run gulp command to watch for frontend changes
All I got is this:
#!/bin/zsh
cd ~/Projects/python/project_name
source ~/virtualenvs/project_name/bin/activate
python ./backend/manage.py runserver
tab
cd front
gulp watch
And as you can expect this doesn't work. Can you point me direction where I should look or is this even possible to do with just shell script?