added command history

The animated gif needs updating but we should wait until things stabilize.
If `@cmdArgInfo` is serving the same purpose as `errorInfo`, please name it something more clear. "cmdArg" is meaningless in this context.