fix(python): set py alias if py is not installed (#12059)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
MikuHatsune39andCarlo Sala authored and GitHub committed 2023-11-24 09:35:46 +01:00
1 parent 76a1dfcf2b
commit ddf673b36d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
# python command
alias py='python3'
# set python command if 'py' not installed
builtin which py > /dev/null || alias py='python3'
# Find python file
alias pyfind='find . -name "*.py"'