X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/1918b63567401917a02af7deb8f999432ea605a7..ec3297cb1d486f62534dea0b99e94f22c88891cb:/.zsh/zshrc/80_abbreviations diff --git a/.zsh/zshrc/80_abbreviations b/.zsh/zshrc/80_abbreviations index 06fc9a7..cae9274 100644 --- a/.zsh/zshrc/80_abbreviations +++ b/.zsh/zshrc/80_abbreviations @@ -3,22 +3,22 @@ abbreviations=( '...' '../..' '....' '../../..' 'BG' '& exit' - 'C' '| wc' - 'G' '|& grep ' - 'H' '| head' + '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 }