Squashed 'zsh/' changes from 2c781a1..c5a5e96

c5a5e96 Config copy, i3 install

git-subtree-dir: zsh
git-subtree-split: c5a5e96260b46c32405229679110fb211f2d1fe4
This commit is contained in:
Fabian Ising
2017-05-24 17:48:20 +02:00
parent 25c6d3b20b
commit 3b443db260
2 changed files with 0 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