sh: Add short py alias for repl

Added `py` alias for any of `ptipython`, `ipython`, `python` found in
that order.
If python is not installed, will not create the alias.
This commit is contained in:
Marty Oehme 2022-04-11 12:52:19 +02:00
parent 50a5b23aab
commit 72c0a5d5f2
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
1 changed files with 9 additions and 0 deletions

View File

@ -92,3 +92,12 @@ if exist vifm; then
alias vm=vifm
alias vmm='vifm ${PWD}'
fi
# python
if exist ptipython; then
alias py=ptipython
elif exist ipython; then
alias py=ipython
elif exist python; then
alias py=python
fi