Merge commit 'd3b9544eadfbe3c45039f71275c582ae306c0640' as 'zsh'

This commit is contained in:
murgi
2017-04-12 10:07:44 +02:00
9 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
export WORKON_HOME=~/python-envs
mkdir -p $WORKON_HOME
function workon() {
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
if ! { [ -z "$1" ] } then
tmux setenv VIRTUAL_ENV "$1"
fi
source /usr/bin/virtualenvwrapper.sh
workon "$@"
fi
}
if [ -n "$VIRTUAL_ENV" ]; then
workon $VIRTUAL_ENV
fi