Skip to content

Instantly share code, notes, and snippets.

@powellnathanj
Created August 29, 2009 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save powellnathanj/177365 to your computer and use it in GitHub Desktop.
Save powellnathanj/177365 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