#!/bin/sh cd ~/src/arc0 && rlwrap -C arc mzscheme -m -f as.scm
-----
#!/bin/sh rlwrap -C arc mzscheme -m -e '(load/cd "~/src/arc0/as.scm")'
Especially in Arc or any other Lispy language, since it does paren matching.
mzscheme -il readline
And rlwrap is great, but any repl should have readline built-in.
Also, (quit) to exit is too cumbersome. ctrl-d doesn't work either. Apparently ctrl-c ctrl-d is the quickest solution.
(when (regexp-match #rx"term" (or (getenv "TERM") "")) (dynamic-require '(lib "rep.ss" "readline") #f))