ref func: py
This commit is contained in:
parent
41525e6c4d
commit
ceab2c49e6
@ -152,7 +152,11 @@ docker_ips() {
|
|||||||
|
|
||||||
|
|
||||||
py() {
|
py() {
|
||||||
test -z "$@" && ipython -i -c "q = exit" || python3 $@
|
if [ -z "$@" -a -n "$(which ipython)" ]; then
|
||||||
|
ipython -i -c "q = exit"
|
||||||
|
else
|
||||||
|
python3 $@
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user