added history grep function 'hist'