10

I have written some code within the plain console REPL of Clojure (lein repl). Now I would like to extract the history in order to get the code that I have written in there. Can I do this somehow?

1
  • 1
    I take it a simple copy paste doesn't do it? You can use the up and down arrows to retrieve past/future commands. A good practice: try to eval code from a file buffer to the REPL and use the REPL only to test the code or make slight changes. Commented May 22, 2013 at 6:40

1 Answer 1

16

Each Leiningen project stores its REPL usage history in the .lein-repl-history file. There's a global repl-history file as well, located at ~/.lein.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.