]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/aliases/aliases.plugin.zsh
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / aliases / aliases.plugin.zsh
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
6 eval '
7   function acs(){
8     (( $+commands[python3] )) || {
9       echo "[error] No python executable detected"
10       return
11     }
12     alias | python3 "'"${0:h}"'/cheatsheet.py" "$@"
13   }
14 '