diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-11 23:24:48 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-11 23:24:48 +1300 |
commit | 817a82e3f7da5c4f41c6e7b63ca42da84573fb06 (patch) | |
tree | a65c6b4bdcc11a9d5026eb07091df275387ec937 /sh/shrc.d/grep.sh | |
parent | Work around systems that export PS1 (diff) | |
download | dotfiles-817a82e3f7da5c4f41c6e7b63ca42da84573fb06.tar.gz dotfiles-817a82e3f7da5c4f41c6e7b63ca42da84573fb06.zip |
Unset stupid GNU options to grep(1)/ls(1)
Diffstat (limited to 'sh/shrc.d/grep.sh')
-rw-r--r-- | sh/shrc.d/grep.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/shrc.d/grep.sh b/sh/shrc.d/grep.sh index a52b6f90..7b3aea57 100644 --- a/sh/shrc.d/grep.sh +++ b/sh/shrc.d/grep.sh @@ -2,6 +2,9 @@ # options for us; if not, we won't be wrapping grep(1) with a function at all [ -d "$HOME"/.cache/grep ] || return +# Discard GREP_OPTIONS +unset -v GREP_OPTIONS + # Define function proper grep() { |