On Mon, Mar 29, 2010 at 11:39 PM, Daniel <cotter.dan...@gmail.com> wrote: > Is there a less cumbersome way to get a load of files on the classpath > than manually editing the .clojure file?
Well, I have a ~/lib/clojure directory and a clj script that automatically puts that directory and all .jar's in it on the classpath. Linux version: #!/bin/bash : "${CLOJURE_LIB:=${HOME}/lib/clojure}" export CLASSPATH="${CLASSPATH:+$CLASSPATH:}$HOME/lib/java/clojure.jar:$CLOJURE_LIB" if [ -d "$CLOJURE_LIB" ]; then for f in "$CLOJURE_LIB"/*.jar; do if [ -r "$f" ]; then CLASSPATH="$CLASSPATH:$f" fi done fi rlwrap java clojure.main "$@" The actual java invocation can of course be replaced to e.g. use JLine instead of rlwrap; I use the latter because JLine doesn't seem to have a vi mode. (Yes, I know, vi user in a Lispy language - heretical!) -- Mark J. Reed <markjr...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.