mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
fix: use python3 for all python invocations (#10832)
This commit is contained in:
parent
b3999a4b15
commit
0818df057c
9 changed files with 17 additions and 17 deletions
|
|
@ -3,9 +3,9 @@
|
|||
# - acs: alias cheatsheet
|
||||
# group alias by command, pass addition argv to grep.
|
||||
function acs(){
|
||||
(( $+commands[python] )) || {
|
||||
(( $+commands[python3] )) || {
|
||||
echo "[error] No python executable detected"
|
||||
return
|
||||
}
|
||||
alias | python ${functions_source[$0]:h}/cheatsheet.py $@
|
||||
alias | python3 ${functions_source[$0]:h}/cheatsheet.py $@
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import itertools
|
||||
import termcolor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue