Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #compdef _workon workon
- # Drop this file in any directory in your $fpath variable
- function _workon {
- local line
- virtualenvs=$(
- command find $WORKON_HOME -maxdepth \
- ${VIRTUALENVWRAPPER_PROJECT_DEPTH:=5} \
- -wholename "*/$VIRTUALENVWRAPPER_ENV_BIN_DIR/activate" | \
- command sed "s#^${WORKON_HOME}/##;s#/bin/activate##")
- _arguments -C \
- "1: :($virtualenvs)"
- }
Add Comment
Please, Sign In to add comment