Restructuring the repo

This commit is contained in:
Alexander Gehrke 2020-04-02 10:38:36 +02:00
parent 21e3cf65e6
commit 3d67598c27
45 changed files with 368 additions and 77 deletions

20
misc/ipy Executable file
View file

@ -0,0 +1,20 @@
#!/bin/zsh
if [[ -n $VIRTUAL_ENV ]]; then
pip install ipython &>/dev/null
else
cd ~/toy-projects/playground_venv/
. bin/activate
fi
if [[ -e $VIRTUAL_ENV/ipython_profile ]]; then
ipy_profile="--profile=$(<$VIRTUAL_ENV/ipython_profile)"
fi
if [[ "$1" == "pip" ]]; then
exec "$@"
elif [[ $1 == "-s" ]]; then
exec $SHELL
else
exec ipython $ipy_profile "$@"
fi