style(acs): fix style and gitignore __pycache__ folder

parent d8066490
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
# #
# - acs: alias cheatsheet # - acs: alias cheatsheet
# group alias by command, pass addition argv to grep. # group alias by command, pass addition argv to grep.
ALIASES_PLUGIN_ROOT=$(cd `dirname $0` && pwd)
function acs(){ function acs(){
which python >>/dev/null (( $+commands[python] )) || {
[[ $? -eq 1 ]] && echo "[error]no python executable detected!" && return echo "[error] No python executable detected"
alias | python $ALIASES_PLUGIN_ROOT/cheatsheet.py $@ return
}
alias | python ${functions_source[$0]:h}/cheatsheet.py $@
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment