Add a command history buffer.