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 fi
## Python Aliases ## ## Python Aliases ##
if which python3.10 >/dev/null 2>&1; then for num in {12..1}; do
alias python3="python3.10" if which python3."${num}" >/dev/null 2>&1; then
fi alias python3="python3.10"
break
fi
done
## Neovim Aliases ## ## Neovim Aliases ##
if which nvim >/dev/null 2>&1; then if which nvim >/dev/null 2>&1; then