diff options
author | Carlo Sala <carlosalag@protonmail.com> | 2022-04-09 14:45:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 14:45:42 +0200 |
commit | 0818df057cca59a949ffa88947a6b16dec2411ca (patch) | |
tree | e74e2a141c494fad28b72f0829655f1c448021f1 /plugins/aliases | |
parent | b3999a4b156185b617a5608317497399f88dc8fe (diff) | |
download | zsh-0818df057cca59a949ffa88947a6b16dec2411ca.tar.gz zsh-0818df057cca59a949ffa88947a6b16dec2411ca.tar.bz2 zsh-0818df057cca59a949ffa88947a6b16dec2411ca.zip |
fix: use `python3` for all `python` invocations (#10832)
Diffstat (limited to 'plugins/aliases')
-rw-r--r-- | plugins/aliases/aliases.plugin.zsh | 4 | ||||
-rw-r--r-- | plugins/aliases/cheatsheet.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/aliases/aliases.plugin.zsh b/plugins/aliases/aliases.plugin.zsh index b3d9340f0..4e1e0558e 100644 --- a/plugins/aliases/aliases.plugin.zsh +++ b/plugins/aliases/aliases.plugin.zsh @@ -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 $@ } diff --git a/plugins/aliases/cheatsheet.py b/plugins/aliases/cheatsheet.py index 694afd31c..a7e3968b0 100644 --- a/plugins/aliases/cheatsheet.py +++ b/plugins/aliases/cheatsheet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import itertools import termcolor |