This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# other stuff here | |
# derivative of https://github.com/lojikil/dotfiles/blob/master/.bashrc#L33 | |
# create virtualenv management functions | |
function venv-activate() { | |
# always activate a local venv if available | |
if [ -d "$(pwd)/venv" ] | |
then | |
echo "local virtualenv activated (venv)." | |
# ...but warn if a global venv by the given name exists |