]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/80_abbreviations
add zsh modes to everything
[zsh.git] / .zsh / zshrc / 80_abbreviations
index e517d6cdd37b1188e55301b5c57a0ee6abf72b24..47e383dae656a37f29721ce630ec86de1ef514f5 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 typeset -Ag abbreviations
 abbreviations=(
   '...'  '../..'
@@ -18,7 +19,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
 }