Last active
August 29, 2015 13:56
-
-
Save lusentis/9120366 to your computer and use it in GitHub Desktop.
automagically setup python & nodejs workspace
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terminal.sublime-settings file