Created
February 17, 2009 14:25
-
-
Save wilkes/65756 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun clj-repl (dir) | |
(interactive (list (read-directory-name "Clojure REPL dir: "))) | |
(setq default-directory dir) | |
(slime)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# put in your PATH | |
export HERE=`pwd` | |
if [ -d $HERE/lib ]; then | |
for file in $HERE/lib/*.jar; do | |
JARS=$JARS:$file | |
done | |
fi | |
if [ -d $HERE/src ]; then | |
JARS=$JARS:src | |
fi | |
if [ -d $HERE/test ]; then | |
JARS=$JARS:test | |
fi | |
if [ -z "$1" ]; then | |
rlwrap java -cp $JARS clojure.main | |
else | |
rlwrap java -cp $JARS clojure.main $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment