Skip to content

Instantly share code, notes, and snippets.

@NDari
Forked from lilactown/rebel.sh
Created September 16, 2018 20:15
Show Gist options
  • Select an option

  • Save NDari/b837b7beefee4d14c14334f1c876c772 to your computer and use it in GitHub Desktop.

Select an option

Save NDari/b837b7beefee4d14c14334f1c876c772 to your computer and use it in GitHub Desktop.
Start a Clojure(Script) REPL with rebel-readline and any other dependencies you want to include
# Add these to your .bash_profile / .zshrc / etc.
# Starts a Clojure repl
function rebel-clj() {
clojure -Sdeps "{:deps {com.bhauman/rebel-readline {:mvn/version \"0.1.4\"} $@}}" -m rebel-readline.main
}
# Starts a browser REPL
function rebel-cljs() {
clojure -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.1.7\"} com.bhauman/rebel-readline-cljs {:mvn/version \"0.1.4\"} $@}}" -m figwheel.main
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment