Skip to content

Instantly share code, notes, and snippets.

@ChrisCoffey
Last active April 10, 2016 02:15
Show Gist options
  • Save ChrisCoffey/84eb996e05ed8935c9dea9ab9e1c4a68 to your computer and use it in GitHub Desktop.
Save ChrisCoffey/84eb996e05ed8935c9dea9ab9e1c4a68 to your computer and use it in GitHub Desktop.
Inspired by Mile Sabin's shapeless Ammonite repl
#!/bin/bash
test -e ~/.coursier/cr || (mkdir -p ~/.coursier && wget -q -O ~/.coursier/cr https://git.io/vgvpD && chmod +x ~/.coursier/cr)
CLASSPATH="$(~/.coursier/cr fetch -q -p -r https://oss.sonatype.org/content/repositories/snapshots \
\
co.fs2:fs2-core_2.11:0.9.0-SNAPSHOT\
co.fs2:fs2-io_2.11:0.9.0-SNAPSHOT\
com.lihaoyi:ammonite-repl_2.11.7:0.5.7 \
\
)" java ammonite.repl.Main --predef 'import fs2._'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment