add: explore alias quickly with aliases plugin.

This commit is contained in:
hqingyi 2015-11-28 22:50:40 +08:00
commit 9a0951e78c
2 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,13 @@
# 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 $@
}