1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Handy wrapper around bpython

This commit is contained in:
Michiel Scholten
2014-06-14 17:08:29 +02:00
parent 59f136495f
commit 14d1ec042c

View File

@@ -46,3 +46,14 @@ function fuck() {
echo ; echo " (╯°□°)╯︵$(echo "$2"|toilet -f term -F rotate)"; echo
fi
}
#20140614 wrapper around bpython to load the virtualenv's python path
bpython() {
if test -n "$VIRTUAL_ENV"
then
PYTHONPATH="$(python -c 'import sys; print ":".join(sys.path)')" \
command bpython "$@"
else
command bpython "$@"
fi
}