2 typeset -Ag abbreviations
10 'HL' ' --help |& less -r'
20 magic-abbrev-expand() {
22 LBUFFER=${LBUFFER%%(#m)[-_a-zA-Z0-9]#}
23 LBUFFER+=${abbreviations[$MATCH]:-$MATCH}
27 no-magic-abbrev-expand() {
31 zle -N magic-abbrev-expand
32 zle -N no-magic-abbrev-expand
33 bindkey " " magic-abbrev-expand
34 bindkey "^x " no-magic-abbrev-expand
35 bindkey -M isearch " " self-insert