Matey is a little script I use to avoid having to type “
| mate -” all the time.
It looks like this:
#!/bin/sh exec 2>&1 exec "$@" | mate -
And it is used like this:
matey curl google.com
(Download the page at google.com and open it in TextMate.)
If you have some frequently used commandos you can add them as aliases:
alias curlmate="matey curl" alias diffmate="matey diff -purN"