Created
February 25, 2010 19:25
-
-
Save rfletcher/314938 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias stripansi="perl -ple 's/\033\[(?:\d*(?:;\d+)*)*m//g;'" | |
alias urlencode='perl -MURI::Escape -ne "\$/=\"\"; print uri_escape \$_"' | |
# use STDIN as the body of a new email in the default email client | |
# usage: git show head | mail | |
alias mail='open "mailto:?body=$(cat - | stripansi | urlencode)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment