Squashed 'zsh/' content from commit ef6699d
git-subtree-dir: zsh git-subtree-split: ef6699deb181ae08ffa7d16879771f2fb13bc690
This commit is contained in:
16
.virtual_env_config.zsh.arch.example
Normal file
16
.virtual_env_config.zsh.arch.example
Normal 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
|
||||
Reference in New Issue
Block a user