存储Clojure REPL行

Chr*_*ian 3 store file clojure read-eval-print-loop

也许这是一个新问题,对不起如果是这样!

是否可以将我输入的所有行存储在文件中的REPL中?也许可以配置它来执行此操作或在关闭REPL会话之前执行此操作.

感谢您的回答!

Sam*_*tep 6

Leiningen在项目中默认存储历史记录:

$ lein new hello
$ cd hello
$ lein repl
user=> (+ 1 2 3)
user=> (exit)
$ cat .lein-repl-history
Run Code Online (Sandbox Code Playgroud)

Boot始终默认存储历史记录:

$ boot repl
boot.user=> (+ 1 2 3)
boot.user=> (exit)
$ cat .nrepl-history
Run Code Online (Sandbox Code Playgroud)