Merge pull request #6 from dmlicht/fix-history-index

fix history to work like bash