Fixes #11. Refactor tophist to work with zsh extended history