enable history for CLI

Hopefully does what it says on the tin...