Created
September 12, 2014 08:53
-
-
Save czekan/88d0d3e69e1f224d5143 to your computer and use it in GitHub Desktop.
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
# Activate virtualenv or show current virtualenv | |
ve() { | |
if [ -n "$VIRTUAL_ENV" ]; then | |
local venv="$(basename $VIRTUAL_ENV)" | |
if [ -n "$venv" ]; then | |
echo "($venv) $VIRTUAL_ENV" | |
fi | |
else | |
source env/bin/activate | |
echo "::: current virtualenv: $VIRTUAL_ENV" | |
fi | |
} | |
# python | |
alias py='python' | |
alias ipy='ipython' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment