aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/grep.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/grep.bash')
-rw-r--r--bash/bashrc.d/grep.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/grep.bash b/bash/bashrc.d/grep.bash
index 625f10ac..7ac80518 100644
--- a/bash/bashrc.d/grep.bash
+++ b/bash/bashrc.d/grep.bash
@@ -1,7 +1,7 @@
# Function returns calculated options for grep
function __grepopts {
local grepopts='-I'
- local grephelp=$(grep --help )
+ local grephelp=$(grep --help)
echo $grephelp | grep -- --color &>/dev/null \
&& grepopts="${grepopts} --color=auto"
echo $grephelp | grep -- --exclude &>/dev/null \