mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
add: explore alias quickly with aliases plugin.
This commit is contained in:
parent
35133507e6
commit
9a0951e78c
2 changed files with 68 additions and 0 deletions
13
plugins/aliases/aliases.plugin.zsh
Normal file
13
plugins/aliases/aliases.plugin.zsh
Normal 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 $@
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue