X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/99f4dc7705ef2ad682b538b2e86362143ff982c4..ba79da8b82d0d955a1ae93b8d38eaa49468ca346:/.zsh/zshrc/80_abbreviations?ds=inline 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 }