Skip to content

Instantly share code, notes, and snippets.

@jsplink
Last active August 29, 2015 14:17
Show Gist options
  • Save jsplink/304c000ebf738269feba to your computer and use it in GitHub Desktop.
Save jsplink/304c000ebf738269feba to your computer and use it in GitHub Desktop.
postmkvirtualenv
#!/bin/bash
# This hook is sourced after a new virtualenv is activated.
#rvm ruby do rvm gemset create ${PROJECT_RVM_ENV};
ruby do rvm gemset create ${PROJECT_RVM_ENV};
pip install nodeenv;
nodeenv -p;
mkdir ~/projects/${PROJECT_NAME}
touch ~/projects/${PROJECT_NAME}/todo.stml
cat > ~/projects/${PROJECT_NAME}/${PROJECT_RVM_ENV}.sublime-project <<DELIM
{
"folders":
[
{
"path": "/Users/jsphar/projects/${PROJECT_NAME}"
},
{
"path": "/Users/jsphar/repos/${PROJECT_NAME}"
}
]
}
DELIM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment