X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/99f4dc7705ef2ad682b538b2e86362143ff982c4..d6a2e5acc380c42f9e74615a46513afaab15cf7e:/.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 }