Skip to content

Instantly share code, notes, and snippets.

@chrisvest
Created December 11, 2009 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisvest/254220 to your computer and use it in GitHub Desktop.
Save chrisvest/254220 to your computer and use it in GitHub Desktop.
#!/bin/bash
BREAK_CHARS="(){}[],^%$#@\"\";:''|\\"
CLOJURE_DIR=/home/cvh/workspace/clojure
CLOJURE_JAR=$CLOJURE_DIR/clojure.jar
CONTRIB_JAR=$CLOJURE_DIR-contrib/clojure-contrib.jar
if [ "-c" = "$1" ]; then
mkdir -p classes
java -cp .:classes:$CLOJURE_JAR -Dclojure.compile.path=classes clojure.lang.Compile "$2"
else
rlwrap --remember -c -b $BREAK_CHARS -f $HOME/.clj_completions \
java -cp .:$CLOJURE_JAR:$CONTRIB_JAR clojure.main $@
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment