I do lots of searching through source code with grep, so I wrote a little helper:
if [ -z "$1" ]; then
echo usage: $0 query
grep -r $1 . | less
I added the following line to my
.profile and now I can call it easily from anywhere:
alias pgrep="bash /Users/peter/pgrep"