How do I run an interpreter with command history support?

129 Views Asked by At

I know there is a way to run an interactive console with command history support (even though the program does not inherently support it). However, I don't remember the command. Can anyone help me?

2

There are 2 best solutions below

0
On BEST ANSWER

Install the package rlwrap and run it like

$ rlwrap foo

to get command line history for the command foo.

0
On

Try ledit.

E.g.

$ ledit mycommand