Better handling of finding python

This commit is contained in:
Price Hiller 2022-01-09 01:56:24 -06:00
parent 8a6716e79c
commit 699fa45678

View File

@ -90,9 +90,12 @@ if [[ "${OSTYPE}" = "darwin"* ]]; then
fi
## Python Aliases ##
if which python3.10 >/dev/null 2>&1; then
for num in {12..1}; do
if which python3."${num}" >/dev/null 2>&1; then
alias python3="python3.10"
fi
break
fi
done
## Neovim Aliases ##
if which nvim >/dev/null 2>&1; then