history filter in shellprompt