Created
September 22, 2015 11:42
-
-
Save cvogt/5702a6a52c29a62ee99f to your computer and use it in GitHub Desktop.
Add to your global.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inspired by https://github.com/steppenwells/sbt-sh