Add history config option

Ignore whitespace and repeated commands