aliases.plugin.zsh 406 B

12345678910
  1. # with lots of 3rd-party amazing aliases installed, just need something to explore it quickly.
  2. #
  3. # - acs: alias cheatsheet
  4. # group alias by command, pass addition argv to grep.
  5. ALIASES_PLUGIN_ROOT=$(cd `dirname $0` && pwd)
  6. function acs(){
  7. which python >>/dev/null
  8. [[ $? -eq 1 ]] && echo "[error]no python executable detected!" && return
  9. alias | python $ALIASES_PLUGIN_ROOT/cheatsheet.py $@
  10. }