5

Is there any keyboard which echoes to the screen the "previously executed command"? Something like the up-arrow key at Linux bash...

It's not duplicate to How do I get "previous executed command" in a bash script?

nbro
  • 15,395
  • 32
  • 113
  • 196
URL87
  • 10,667
  • 35
  • 107
  • 174

1 Answers1

8

Load XREPL and you'll get readline-style input editing, which should include the ability to load previous lines using the up-arrow key.

(require xrepl)
Barmar
  • 741,623
  • 53
  • 500
  • 612