hf function for easy history grep