mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
fix(python): set py alias if py is not installed (#12059)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
parent
76a1dfcf2b
commit
ddf673b36d
2 changed files with 3 additions and 3 deletions
|
|
@ -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"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue