1

fix py aliases

This commit is contained in:
Evan Pratten 2023-10-30 10:58:09 -04:00
parent 2692667af0
commit f700182fd9

View File

@ -46,7 +46,8 @@ alias whois-ripe="whois -h whois.ripe.net"
if [ -x "$(command -v nvim)" ]; then alias vim="nvim"; fi if [ -x "$(command -v nvim)" ]; then alias vim="nvim"; fi
if [ -x "$(command -v neomutt)" ]; then alias mutt="neomutt"; fi if [ -x "$(command -v neomutt)" ]; then alias mutt="neomutt"; fi
# Python aliases # If python exists, configure an alias for python3 if needed
if [ -x "$(command -v python)" ]; then
# If `python --version` starts with `Python 3` # If `python --version` starts with `Python 3`
if [[ $(python --version) == Python\ 3* ]]; then if [[ $(python --version) == Python\ 3* ]]; then
# If we don't have python3 in our path # If we don't have python3 in our path
@ -55,6 +56,7 @@ if [[ $(python --version) == Python\ 3* ]]; then
alias python3=python alias python3=python
fi fi
fi fi
fi
# Kill via pgrep # Kill via pgrep
nkill() { nkill() {