Skip to content

Instantly share code, notes, and snippets.

@matsu-chara
Created April 18, 2017 12:08
Show Gist options
  • Save matsu-chara/5856ec0ee322fb7ce20fb40e93db8c35 to your computer and use it in GitHub Desktop.
Save matsu-chara/5856ec0ee322fb7ce20fb40e93db8c35 to your computer and use it in GitHub Desktop.
cousierをONにしたりOFFにしたりする君
# coursierをon
function coursier_enable() {
sed -i 's/\/\/\(addSbtPlugin("io.get-coursier" % "sbt-coursier" % ".*")\)/\1/' ~/.sbt/0.13/plugins/global.sbt
}
# coursierをoff
function coursier_disable() {
sed -i '/^addSbtPlugin("io.get-coursier" % "sbt-coursier" % ".*")/s/^/\/\//' ~/.sbt/0.13/plugins/global.sbt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment