Skip to content

Instantly share code, notes, and snippets.

@diffused
Created June 22, 2013 18:12
Show Gist options
  • Save diffused/5841911 to your computer and use it in GitHub Desktop.
Save diffused/5841911 to your computer and use it in GitHub Desktop.
Xubuntu shell script that starts a development environment / setup for one of my projects. To run: source ~/start_colors_env.sh It loads up a a bunch of *interactive* xfce4-terminals, sets virtualenv in each one, terminal tabs named "scratch" and "pry", loads sublime text from "scratch", web apps are started in "public_site" and "color_finder". …
#!/bin/sh
xfce4-terminal \
-T scratch \
--working-directory=/opt/colors/ \
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; source ./_env/bin/activate; s . &" bash' \
--tab -T pry \
--working-directory=/opt/colors/ \
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; source ./_env/bin/activate; cd ./apps ; ./pry_with_models.sh" bash' \
--window -T public_site \
--working-directory=/opt/colors/ \
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; source ./_env/bin/activate && cd ./apps/public_site/ && ./dev.sh" bash' \
--window -T color_finder \
--working-directory=/opt/colors/ \
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; source ./_env/bin/activate && cd ./apps/color_finder/ && ./dev.sh" bash' \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment