Skip to content

Instantly share code, notes, and snippets.

@msharp
Created February 7, 2013 03:04
Show Gist options
  • Save msharp/4728070 to your computer and use it in GitHub Desktop.
Save msharp/4728070 to your computer and use it in GitHub Desktop.
Add an alias to your aliases to list your aliases. Works for bash & zsh, probably other shells too.
alias aliases="egrep '^[^#$ ]' $0 | sed -E 's/^alias ([^=]+)=/\1 => /g' | sort"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment