mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
style(acs): fix style and gitignore __pycache__ folder
This commit is contained in:
parent
d806649028
commit
c4be9294f2
2 changed files with 6 additions and 4 deletions
1
plugins/aliases/.gitignore
vendored
Normal file
1
plugins/aliases/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
__pycache__
|
|
@ -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 $@
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue