mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
13 lines
369 B
Bash
13 lines
369 B
Bash
# with lots of 3rd-party amazing aliases installed, just need something to get it quickly.
|
|
#
|
|
# use alias as prefix:
|
|
# - aliass: search alias
|
|
# - aliascs: cheatsheet, group alias by command
|
|
function aliass(){
|
|
[[ $# -gt 0 ]] && alias | grep $@
|
|
}
|
|
|
|
function aliascs(){
|
|
local script_root=$(cd `dirname $0` && pwd)
|
|
alias | python $script_root/cheatsheet.py $@
|
|
}
|