Add zsh anything.el plugin
[zsh.git] / .zsh / zaw / sources / aliases.zsh
1 function zaw-src-aliases() {
2 candidates=($(alias | cut -d '=' -f 1))
3 actions=(zaw-callback-execute zaw-callback-append-to-buffer zaw-callback-replace-buffer view-alias-pager)
4 act_descriptions=("execute" "append to buffer" "replace buffer" "view alias")
5 }
6
7 view-alias-pager() {
8 alias $1 | ${PAGER:-less}
9 }
10
11 zaw-register-src -n aliases zaw-src-aliases