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