Clojure REPL的历史记录长度是由什么指定的?

4

它在哪里设置?我正在使用Lein REPL和LaClojure REPL,但我找不到历史记录长度的设置位置。


你是否以编程方式访问REPL?对于标准的交互使用,人类不会达到限制。我肯定从未遇到过这种情况。 - noahlz
2
我之所以问这个问题是因为我的历史记录很短,而且作为一个人类,我已经达到了它的极限。 - Hendekagon
1个回答

3

在 bin 目录下的 idea.properties 文件中有 idea.cycle.buffer.size 选项:

---------------------------------------------------------------------
This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb)
Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled
--------------------------------------------------------------------
idea.cycle.buffer.size=1024

https://dev59.com/HGLVa4cB1Zd3GeqPuDRu#10793230 中,Micah提到了在 .inputrc 文件中设置set history-size 10000的设置。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接