aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-08-17 18:15:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-08-17 18:15:44 +1200
commita30202990f1fef07e10e00aa32ad9c8eecfb4d2d (patch)
tree0e8cfd0a2784b33165a4c1f33c0ed2104dfbc0e2 /bash
parentLowercase containing term var (diff)
downloaddotfiles-a30202990f1fef07e10e00aa32ad9c8eecfb4d2d.tar.gz
dotfiles-a30202990f1fef07e10e00aa32ad9c8eecfb4d2d.zip
Whoops, wrong binary tested for option presence
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index bb0c604d..0ae611e0 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -139,7 +139,7 @@ if [[ $colors -ge 8 ]]; then
fi
# Set up more options for grep; exclude version control files.
-if ls --help | grep -- --exclude &>/dev/null; then
+if grep --help | grep -- --exclude &>/dev/null; then
for pattern in .git .gitignore .gitmodules; do
grepopts="${grepopts} --exclude=${pattern}"
done