How do I customise Bash so that up and down keys are the same as in cmd?
$echo command1 $echo command2 $echo command3 $echo command4
In both Bash and cmd, pressing ↑, ↑, ↑, ENTER will run
However, subsequently pressing the down-key in cmd will go straight to the command afterward, i.e.
echo command3. Pressing the down-key in Bash does nothing. cmd keeps point-in-time history (similar to the Back and Forward buttons in a web browser), but Bash doesn't.
Similarly with cmd, pressing the up-key twice in cmd brings back
echo command1, whereas doing this in Bash returns
There are many times when I wish to excuse some chain of commands which I previously entered in order. It's really handy in cmd that I can scroll back through history to the first of the sequence and then, ↓, ENTER, ↓, ENTER, ↓, ENTER...
However I cannot find a similar way to do this in Bash. Is it possible to modify
~/.inputrc or some other file in some way to achieve this?