Awesome history search in bash
Taken from https://coderwall.com/p/oqtj8w