Mercurial > hg > config
diff .bashrc @ 167:842e1fca024a
add a quotemail function for quoting mail
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 08 Sep 2011 09:39:25 -0700 |
parents | 700b43d5052e |
children | ab2fc6222f94 |
line wrap: on
line diff
--- a/.bashrc Fri Sep 02 11:24:35 2011 -0700 +++ b/.bashrc Thu Sep 08 09:39:25 2011 -0700 @@ -300,9 +300,7 @@ } blog-file() { - echo "$HOME/web/blog/k0s/entries/public/$1" - } hgrc() { @@ -341,6 +339,19 @@ rm ${TMPFILE} } +quotemail() { + +command='s/^/> /' +inplace="" +if [ "$#" == "2" ] +then + inplace="-i" +fi + +sed ${inplace} "${command}" "$1" + +} + ### include overrides for commands source ~/.bash_overrides