Last Updated: June 24, 2016
· ryrych

List all of your aliases with one meta-alias

You have lots of git, zsh aliases. Every once and a while you can’t recall the one that you need now. So you fire git aliases or alias and use ag (or grep) to find one. If you happen to do it repeatedly, consider this:

alias aliasall="{ alias; git aliases; } | sort"

Better right? I kind of turned into meta mode. See this:

alias ghb="git le head --not origin/$(git_current_branch) | wc -l | awk '{ print $1 }'"
alias grm="git rebase master"
alias rs="rails server"
alias rc="rails console"
alias rdc="rake db:create"
alias rdm="rake db:migrate"
alias rdd="rake db:drop"

If you type the full command over and over again (or you’re lazy), you might also consider meta-aliasing.