diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-08-17 18:15:44 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-08-17 18:15:44 +1200 |
commit | a30202990f1fef07e10e00aa32ad9c8eecfb4d2d (patch) | |
tree | 0e8cfd0a2784b33165a4c1f33c0ed2104dfbc0e2 /bash | |
parent | Lowercase containing term var (diff) | |
download | dotfiles-a30202990f1fef07e10e00aa32ad9c8eecfb4d2d.tar.gz dotfiles-a30202990f1fef07e10e00aa32ad9c8eecfb4d2d.zip |
Whoops, wrong binary tested for option presence
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc | 2 |
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 |