From 72c0a5d5f2cdf4ba15310f70d3df797abae0d6d6 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 11 Apr 2022 12:52:19 +0200 Subject: [PATCH] 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. --- sh/.config/sh/alias | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sh/.config/sh/alias b/sh/.config/sh/alias index 9b1c9a8..2a28d55 100644 --- a/sh/.config/sh/alias +++ b/sh/.config/sh/alias @@ -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