Skip to content

Instantly share code, notes, and snippets.

@cvogt
Created September 22, 2015 11:42
Show Gist options
  • Save cvogt/5702a6a52c29a62ee99f to your computer and use it in GitHub Desktop.
Save cvogt/5702a6a52c29a62ee99f to your computer and use it in GitHub Desktop.
Add to your global.sbt
addCommandAlias("git", "; sh git")
commands ++= Seq(
Command.args("sh", "<shell command>") { (state, args) =>
// using script -q here to maintain ansi colors, see http://stackoverflow.com/a/13587964/467390
val ret = ("script -q /dev/null " ++ args.mkString(" ")) !
state
}
)
@cvogt
Copy link
Author

cvogt commented Sep 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment