Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract Clojure REPL history

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?

like image 275
wirrbel Avatar asked May 22 '13 06:05

wirrbel


People also ask

How do I get out of Clojure REPL?

You can exit the REPL by typing Ctrl+D (pressing the Ctrl and D keys at the same time).

Does Replit have a history?

How to Access History​ A repl's history is located at https://replit.com/@username/repltitle/history , but you can reach the same page by: Choosing "History" from the three-dot menu for that specific repl (from the My Repls page) or. Clicking on the rewind button located in the top navigation bar inside the repl.

How do you use Calva REPL?

It works like so: Open your project in VS Code. Issue the command Start a Project REPL and Connect: ctrl+alt+c ctrl+alt+j . Answer the quick-pick prompts telling Calva about project types and what profiles to start.

What is Clojure REPL?

A Clojure REPL (standing for Read-Eval-Print Loop) is a programming environment which enables the programmer to interact with a running Clojure program and modify it, by evaluating one code expression at a time.


1 Answers

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.

like image 68
deprecated Avatar answered Oct 22 '22 17:10

deprecated