A killer feature not listed here is global aliases. These are aliases that can be anywhere in a line. The most use I get out of this is from having
alias -g L=' | less '
which allows me to simply append "L" to a line to pipe the output to less.
ls L
The pattern of short all-caps global aliases for ' | command 's make building/editing pipelines really easy/fast.
alias -g C=' | wc -l '
alias -g A=' | ack-grep '
alias -g S=' | sort '
alias -g JQL=' | jq -C | less'
ls **/*png L
ls **/*png A -v regex C
curl $site JQL
putting
bindkey '^g' _expand_alias
in your zshrc allows you to expand aliases with <C-g>
bindkey '^g' _expand_alias
in your zshrc allows you to expand aliases with <C-g>
You can find more global aliases and tips at: http://grml.org/zsh/zsh-lovers.html