]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/80_abbreviations
abbreviations are not preceeded by -
[zsh.git] / .zsh / zshrc / 80_abbreviations
index e517d6cdd37b1188e55301b5c57a0ee6abf72b24..cae9274555ad28e864b69b896143b7babc5cace3 100644 (file)
@@ -18,7 +18,7 @@ abbreviations=(
 
 magic-abbrev-expand() {
     local MATCH
-    LBUFFER=${LBUFFER%%(#m)[_a-zA-Z0-9]#}
+    LBUFFER=${LBUFFER%%(#m)[-_a-zA-Z0-9]#}
     LBUFFER+=${abbreviations[$MATCH]:-$MATCH}
     zle self-insert
 }