summaryrefslogtreecommitdiff
path: root/plugins/aliases
diff options
context:
space:
mode:
authorCarlo Sala <carlosalag@protonmail.com>2022-04-09 14:45:42 +0200
committerGitHub <noreply@github.com>2022-04-09 14:45:42 +0200
commit0818df057cca59a949ffa88947a6b16dec2411ca (patch)
treee74e2a141c494fad28b72f0829655f1c448021f1 /plugins/aliases
parentb3999a4b156185b617a5608317497399f88dc8fe (diff)
downloadzsh-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.zsh4
-rw-r--r--plugins/aliases/cheatsheet.py2
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