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:
parent
50a5b23aab
commit
72c0a5d5f2
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue