From 41cbc131190ea1b1b95a17a7fe9ce12e7b52792d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 19 Aug 2011 08:19:52 -0400 Subject: don't alias pgrep='pgrep --color=auto' --- .bash_aliases | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.bash_aliases') diff --git a/.bash_aliases b/.bash_aliases index 7ad559b..0788501 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -11,10 +11,12 @@ if [ -x "`which dircolors`" ]; then alias dir='dir -v --color=auto' alias vdir='vdir -v--color=auto' - for com in ${PATH//:/\/*grep }/*grep; do - if [ -f "$com" ]; then - com=`basename "$com"` - alias $com="$com --color=auto" + for xgrep in ${PATH//:/\/*grep }/*grep; do + if [ -f "$xgrep" ]; then + xgrep=`basename "$xgrep"` + if [ "$xgrep" != pgrep ]; then + alias $xgrep="$xgrep --color=auto" + fi fi done else -- cgit v1.2.3-2-g168b