aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/hgrep.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-27 23:29:14 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-27 23:29:14 +1300
commit38bc0e61127d4dd7cf245f26b06c2ed5ca21d159 (patch)
treedcee672b8acde379cc77854fc3b739d65f5ae3be /bash/bashrc.d/hgrep.bash
parentUpdate link to OpenPGP best practices (diff)
downloaddotfiles-38bc0e61127d4dd7cf245f26b06c2ed5ca21d159.tar.gz
dotfiles-38bc0e61127d4dd7cf245f26b06c2ed5ca21d159.zip
Don't force end-of-options in hgrep
Diffstat (limited to 'bash/bashrc.d/hgrep.bash')
-rw-r--r--bash/bashrc.d/hgrep.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/hgrep.bash b/bash/bashrc.d/hgrep.bash
index 0c31a213..3d0d0589 100644
--- a/bash/bashrc.d/hgrep.bash
+++ b/bash/bashrc.d/hgrep.bash
@@ -4,6 +4,6 @@
# $ history | grep PATTERN
#
hgrep() {
- grep -- "${@:?}" "${HISTFILE:?}"
+ grep "${@:?}" "${HISTFILE:?}"
}