blob: 3d0d05893332989132fb5806d8b63f8e4392ad4c (
plain) (
tree)
|
|
# Search shell history file for a pattern. If you put your whole HISTFILE
# contents into memory, then you probably don't need this, as you can just do:
#
# $ history | grep PATTERN
#
hgrep() {
grep "${@:?}" "${HISTFILE:?}"
}
|