I think `cat` is not needed here – just do `grep --color=always "$*" "$HISTFILE" | less -RX`