The following Bash script will initialize 3 separate terminal tabs for:
- Starting DB & Django server
- Open vim at working directory
- Open MC at working directory
All the three above have virtualenv activated. So, all you have to do is just something like this:
$work my_project_name
You also can get the script at my repo: work.sh
#!/bin/bash sudo service postgresql start xfce4-terminal \ --tab -T EDITOR -e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; workon '${1}'; vim" bash' \ --tab -T MC -e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; workon '${1}'; mc" bash' env PROMPT_COMMAND="workon '${1}'; r" bash