Merge commit 'd3b9544eadfbe3c45039f71275c582ae306c0640' as 'zsh'
This commit is contained in:
17
zsh/.virtual_env_config.zsh.debian.example
Normal file
17
zsh/.virtual_env_config.zsh.debian.example
Normal 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
|
||||
Reference in New Issue
Block a user