Fork me on GitHub
#tools-deps
<
2018-07-06
>
gfredericks11:07:28

does customizing a repl consist of having an alternate (different from clj) executable for starting the repl, or is there a facility in tools.deps to customize it? e.g., customize the printing function, or ensure that certain code is run before the repl starts

Alex Miller (Clojure team)12:07:54

Once you have a repl, you can start a nested repl within it with whatever customizations you want. But I think this an area ripe for better options.

gfredericks12:07:46

looks like I can't put a system-global user.clj file on the classpath automatically, is that correct?

gfredericks12:07:14

(due to "only the last :paths is kept and others are dropped")

ghadi14:07:24

you can certainly start a different main method rather than clojure.main and give yourself a souped up repl @gfredericks

gfredericks14:07:23

@ghadi but that requires passing args each time, right?

ghadi14:07:42

alias repl='java $(cat jopts) -cp $(clojure -Spath) clojure.main -m gfredericks.fave.repl'