Skip to content

Instantly share code, notes, and snippets.

@lusentis
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusentis/9120366 to your computer and use it in GitHub Desktop.
Save lusentis/9120366 to your computer and use it in GitHub Desktop.
automagically setup python & nodejs workspace
#!/bin/bash
if [ -f ".virtualenvname" ]; then
echo "~ detected python project ~"
echo "~ switcing to virtualenv $(cat .virtualenvname)"
workon $(cat .virtualenvname)
pip install -r requirements.txt
fi
if [ -f "package.json" ]; then
echo "~ detected node.js project ~"
npm install
fi
if [ -f ".env" ]; then
echo "~ sourcing .env"
source .env
fi
if [ -d ".git" ]; then
echo "~ running git status"
git status -s
fi
# Start a subshell
zsh
@lusentis
Copy link
Author

Terminal.sublime-settings file

{  "terminal": "/usr/bin/terminator",  "parameters": ["-e", "bash ~/bin/smart.sh"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment