X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/29ff3db6dd936515eef1d15b34a42b6ffca4f4a5..4e5f7ffb64e3e06024312c9d859eeee5c4504dd1:/.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 }