Search cmd history by up and down arrow

https://coderwall.com/p/oqtj8w