Skip to content

Instantly share code, notes, and snippets.

@stfp
Created January 27, 2011 18:26
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 stfp/798941 to your computer and use it in GitHub Desktop.
Save stfp/798941 to your computer and use it in GitHub Desktop.
virtualenvwrapperwrapper is like lazy initialization for virtualenvwrapper
#!/bin/sh
_veww () { source virtualenvwrapper.sh }
workon () { _veww; workon $@ }
mkvirtualenv () { _veww; mkvirtualenv $@ }
complete -o default -o nospace -F _veww workon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment