Skip to content

Instantly share code, notes, and snippets.

@BlakeWilliams
Created October 8, 2011 03:59
Show Gist options
  • Save BlakeWilliams/1271838 to your computer and use it in GitHub Desktop.
Save BlakeWilliams/1271838 to your computer and use it in GitHub Desktop.
Modified CLJ script
#!/bin/sh
breakchars="(){}[],^%$#@\"\";:''|\\"
CLOJURE=$CLASSPATH:/usr/local/Cellar/clojure/1.3.0/clojure-1.3.0.jar:${PWD}
if [ "$#" -eq 0 ]; then
exec rlwrap --remember -c -b "$breakchars" \
java -cp $CLOJURE clojure.main --repl
else
java -cp $CLOJURE clojure.main "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment