]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zshrc/80_abbreviations

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

expand ~ for inplacemkdir
[etc/zsh.git] / .zsh / zshrc / 80_abbreviations
index 06fc9a74aec568e0c5574674daa56de1a82aa16f..cae9274555ad28e864b69b896143b7babc5cace3 100644 (file)
@@ -3,22 +3,22 @@ abbreviations=(
   '...'  '../..'
   '....' '../../..'
   'BG'   '& exit'
   '...'  '../..'
   '....' '../../..'
   'BG'   '& exit'
-  'C'    '| wc'
-  'G   '|& grep '
-  'H   '| head'
+  'WC'   '| wc'
+  'GR'   '|& grep '
+  'HD'   '| head'
   'HL'   ' --help |& less -r'
   'HL'   ' --help |& less -r'
-  'L   '| less'
-  'LL'   '|& less -r'
-  'N   '&>/dev/null'
+  'LS'   '| less'
+  'LR'   '|& less -r'
+  'NL'   '&>/dev/null'
   'SL'   '| sort | less'
   'SL'   '| sort | less'
-  'S   '| sort -u'
-  'T   '| tail'
-  'V   '|& vim -'
+  'SU'   '| sort -u'
+  'TL'   '| tail'
+  'VI'   '|& vim -'
 )
 
 magic-abbrev-expand() {
     local MATCH
 )
 
 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
 }
     LBUFFER+=${abbreviations[$MATCH]:-$MATCH}
     zle self-insert
 }