Fixes #290

Make CLI history persistent across sessions.