Created
September 8, 2014 21:56
-
-
Save csinchok/0288a181bd2910e14e0d to your computer and use it in GitHub Desktop.
Just a cool script
This file contains hidden or 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
| function throwaway { | |
| THROWAWAY_DIR=$(mktemp -d -t virtualenv); | |
| cd $THROWAWAY_DIR; | |
| virtualenv .; | |
| source bin/activate; | |
| trap "rm -r $THROWAWAY_DIR" EXIT | |
| } | |
| export -f throwaway |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment