summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-08-19 08:19:52 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-08-19 08:19:52 -0400
commit41cbc131190ea1b1b95a17a7fe9ce12e7b52792d (patch)
tree6be0f0e318ced8f6768f0b01592046dab05649b5
parent4526bd62b596a1458514552dba0e39e0f40db24e (diff)
don't alias pgrep='pgrep --color=auto'
-rw-r--r--.bash_aliases10
1 files changed, 6 insertions, 4 deletions
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