Better handling of finding python
This commit is contained in:
parent
8a6716e79c
commit
699fa45678
7
.profile
7
.profile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user