While using applications (such as a database front end, or a programming language) from within a terminal, what's the best way to store the command history (of commands issued within the applications).
E.g. I start python from the shell and issue a bunch of python commands. I'd like those stored somehow.
I know this is possible because I've done it earlier, but despite my best efforts, am unable to recall it now. It was something of the form
>XX APP_NAME where APP_NAME was something like python and XX is the program that was prefixed to the application name to store the application's command history.
To clarify, when I go back in the same application the same way (
> XX APP_NAME) pressing the up arrow should give previously issued commands.