mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 22:00:08 +00:00
e47a8e2321
* add: explore alias quickly with aliases plugin. * change: add compatibility with python2 & python3. - add compatibility. - add termcolor.py. - remove aliass(search), just use acs. - detect python.
10 lines
406 B
Bash
10 lines
406 B
Bash
# with lots of 3rd-party amazing aliases installed, just need something to explore it quickly.
|
|
#
|
|
# - 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 $@
|
|
}
|