2022-08-02 02:54:45 +08:00
|
|
|
# Handle $0 according to the standard:
|
|
|
|
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
|
|
|
|
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
|
|
0="${${(M)0:#/*}:-$PWD/$0}"
|
|
|
|
|
|
|
|
eval '
|
2023-07-19 20:28:55 +08:00
|
|
|
function als(){
|
2022-08-02 02:54:45 +08:00
|
|
|
(( $+commands[python3] )) || {
|
|
|
|
echo "[error] No python executable detected"
|
|
|
|
return
|
|
|
|
}
|
|
|
|
alias | python3 "'"${0:h}"'/cheatsheet.py" "$@"
|
2021-12-29 00:46:35 +08:00
|
|
|
}
|
2022-08-02 02:54:45 +08:00
|
|
|
'
|