]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/80_abbreviations
add ~/.local/bin to PATH
[zsh.git] / .zsh / zshrc / 80_abbreviations
index 06fc9a74aec568e0c5574674daa56de1a82aa16f..e4c00c0847087ec67d4fef16304169472caea6cc 100644 (file)
@@ -1,24 +1,26 @@
+# -*- mode: sh -*-
 typeset -Ag abbreviations
 abbreviations=(
   '...'  '../..'
   '....' '../../..'
   'BG'   '& exit'
-  'C'    '| wc'
-  'G'    '|& grep '
-  'H'    '| head'
+# WC is the alias for working tree for the --git-export option
+#  'WC'   '| wc'
+  'GR'   '|& grep '
+  'HD'   '| head'
   'HL'   ' --help |& less -r'
-  'L   '| less'
-  'LL'   '|& less -r'
-  'N   '&>/dev/null'
+  'LS'   '| less'
+  'LR'   '|& less -r'
+  'NL'   '&>/dev/null'
   'SL'   '| sort | less'
-  'S   '| sort -u'
-  'T   '| tail'
-  'V   '|& vim -'
+  'SU'   '| sort -u'
+  'TL'   '| tail'
+  'VI'   '|& vim -'
 )
 
 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
 }