aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc')
-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