aliases.plugin.zsh 387 B

1234567891011121314
  1. # Handle $0 according to the standard:
  2. # https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
  3. 0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
  4. 0="${${(M)0:#/*}:-$PWD/$0}"
  5. eval '
  6. function acs(){
  7. (( $+commands[python3] )) || {
  8. echo "[error] No python executable detected"
  9. return
  10. }
  11. alias | python3 "'"${0:h}"'/cheatsheet.py" "$@"
  12. }
  13. '