Skip to content

Instantly share code, notes, and snippets.

@joshuamiller
Forked from powellnathanj/gist:177365
Created August 29, 2009 02:31
Show Gist options
  • Save joshuamiller/177366 to your computer and use it in GitHub Desktop.
Save joshuamiller/177366 to your computer and use it in GitHub Desktop.
$ cat $(which clojure)
BREAK_CHARS="(){}[],^%$#@\"\";:''|\\"
CLOJURE_JARS="/opt/jars/*"
CP="/opt/clojure/clojure.jar:/opt/clojure/clojure-contrib.jar:$CLOJURE_JARS"
# If no file is being passed, start the REPL
if [ -z "$1" ]; then
rlwrap --remember -c -b $BREAK_CHARS -f $HOME/.clj_completions \
java -cp $CP clojure.main
#java -cp $CP jline.ConsoleRunner clojure.main
else
java -cp $CP clojure.main $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment