Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Last active December 20, 2015 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewjberger/619df003a0f9eabf68e3 to your computer and use it in GitHub Desktop.
Save matthewjberger/619df003a0f9eabf68e3 to your computer and use it in GitHub Desktop.
finda = "!grepalias() { git config --global --get-regexp alias | grep -i \"$1\" | awk -v nr=2 '{sub(/^alias\\./,\"\")};{printf \"\\033[31m%_10s\\033[1;37m\", $1};{sep=FS};{for (x=nr; x<=NF; x++) {printf \"%s%s\", sep, $x; }; print \"\\033[0;39m\"}'; }; grepalias"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment