Commits

Miki Tebeka committed 25aabec

Work environment

  • Participants
  • Parent commits 73ceae0

Comments (0)

Files changed (2)

+; vim:ft=clojure
+
+(set! *print-length* 100)
+(set! *print-level* 20)
+(use '[clojure.contrib.repl-utils :only [show]])
+;(add-break-thread!)
+#!/bin/bash
+# Run a Clojure REPL in a new gnome terminal. Clojure jars (and any other jars
+# you want loaded) should be at ~/.clojure
+
+# GUI mode
+if [ "$1" != "--no-fork" ]; then
+    gnome-terminal -t Clojure -x $0 --no-fork $* &
+    exit
+fi
+
+shift
+
+breakchars="(){}[],^%$#@\"\";:''|\\"
+
+# If there is a lein project here, call "lein repl"
+if [ -f project.clj ]; then
+    lein repl
+else
+    rlwrap --remember -c -b "$breakchars" \
+           java -Djava.ext.dirs=$HOME/.clojure clojure.main \
+           -i $HOME/.clojurerc --repl
+fi