Skip to content

Instantly share code, notes, and snippets.

@shriphani
Created February 5, 2013 15:26
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 shriphani/4715130 to your computer and use it in GitHub Desktop.
Save shriphani/4715130 to your computer and use it in GitHub Desktop.
clj file
#!/bin/sh
# Clojure wrapper script.
# With no arguments runs Clojure's REPL.
# Put the Clojure jar from the cellar and the current folder in the classpath.
CLOJURE=$CLASSPATH:/usr/local/Cellar/clojure/1.4.0/clojure-1.4.0.jar:${PWD}
if [ "$#" -eq 0 ]; then
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