mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
style(acs): fix style and gitignore __pycache__ folder
This commit is contained in:
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 $@
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user