style(acs): fix style and gitignore __pycache__ folder

master
Marc Cornellà 4 years ago
parent d806649028
commit c4be9294f2
No known key found for this signature in database
GPG Key ID: 314585E776A9C1B
  1. 1
      plugins/aliases/.gitignore
  2. 9
      plugins/aliases/aliases.plugin.zsh

@ -0,0 +1 @@
__pycache__

@ -2,9 +2,10 @@
#
# - acs: alias cheatsheet
# group alias by command, pass addition argv to grep.
ALIASES_PLUGIN_ROOT=$(cd `dirname $0` && pwd)
function acs(){
which python >>/dev/null
[[ $? -eq 1 ]] && echo "[error]no python executable detected!" && return
alias | python $ALIASES_PLUGIN_ROOT/cheatsheet.py $@
(( $+commands[python] )) || {
echo "[error] No python executable detected"
return
}
alias | python ${functions_source[$0]:h}/cheatsheet.py $@
}

Loading…
Cancel
Save