Squashed 'zsh/' content from commit ef6699d

git-subtree-dir: zsh
git-subtree-split: ef6699deb181ae08ffa7d16879771f2fb13bc690
This commit is contained in:
murgi
2017-04-12 10:07:44 +02:00
commit d3b9544ead
9 changed files with 83 additions and 0 deletions

View File

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