Grep mode hook command history