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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user