0
4

2 回答 2

0

Turns out that in my ~/.zshrc file I had an alias for csi that called csi with rlwrap:

alias csi='rlwrap csi'

Calling rlwrap on csi was causing csi to use rlwrap's history instead of the built-in history provided by the readline egg.

于 2015-01-06T15:35:32.037 回答
0

readline 在鸡计划中被弃用 解决方案是安装 linenoise

并将其放入您的 .csirc 中:

(import linenoise)
(current-input-port (make-linenoise-port))

(set-history-length! 300)

(load-history-from-file ".linenoise-history")

(let loop ((expr (linenoise "> ")))
              (cond ((equal? expr "bye")
                             (save-history-to-file ".linenoise-history")
                             "Bye!")
                    (else
                        (display (eval (read (open-input-string expr))))
                        (newline)
                        (history-add expr)
                        (loop (linenoise "> ")))))
于 2020-03-02T00:06:06.073 回答