1
0
mirror of https://github.com/akelge/zsh synced 2025-07-04 13:39:07 +00:00

migration

This commit is contained in:
Andrea Mistrali
2015-03-13 16:03:57 +01:00
parent fec1d63a8d
commit 0d61c334d7
160 changed files with 0 additions and 48269 deletions

27
zsh.d/90-virtualenv.zsh Normal file
View File

@ -0,0 +1,27 @@
function venv {
# export WORKON_HOME=$HOME/Src/virtualenvs
# export PROJECT_HOME=$HOME/Src/projects
if [ -z $WORKON_HOME ] || [ -z $PROJECT_HOME ]; then
echo "Please, set WORKON_HOME and PROJECT_HOME first."
echo "Better place to set them is 99-local.zsh"
return
fi
VIRTUALENV_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
[ -d $WORKON_HOME ] || mkdir -p $WORKON_HOME
[ -d $PROJECT_HOME ] || mkdir -p $PROJECT_HOME
source $VIRTUALENV_SCRIPT
echo "virtualenv enabled."
echo "WORKON_HOME: $WORKON_HOME"
echo "PROJECT_HOME: $PROJECT_HOME"
echo
echo "Virtualenvs:"
lsvirtualenv -b
echo
}
# vim: set ts=4 sw=4 tw=0 ft=sh :