]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/80_abbreviations
add ~/.local/bin to PATH
[zsh.git] / .zsh / zshrc / 80_abbreviations
index e517d6cdd37b1188e55301b5c57a0ee6abf72b24..e4c00c0847087ec67d4fef16304169472caea6cc 100644 (file)
@@ -1,9 +1,11 @@
+# -*- mode: sh -*-
 typeset -Ag abbreviations
 abbreviations=(
   '...'  '../..'
   '....' '../../..'
   'BG'   '& exit'
-  'WC'   '| wc'
+# WC is the alias for working tree for the --git-export option
+#  'WC'   '| wc'
   'GR'   '|& grep '
   'HD'   '| head'
   'HL'   ' --help |& less -r'
@@ -18,7 +20,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
 }