Skip to content

Instantly share code, notes, and snippets.

@nietaki
Created May 21, 2014 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nietaki/a7d6c8ce0df192bea925 to your computer and use it in GitHub Desktop.
Save nietaki/a7d6c8ce0df192bea925 to your computer and use it in GitHub Desktop.
/**
* Created by nietaki on 21.05.14.
*/
import scala.util.Properties
object Runner {
def main(args: Array[String]): Unit = {
Properties.envOrNone("EDITOR").map(v => println(s"editor set to $v"))
}
}
@nietaki
Copy link
Author

nietaki commented May 21, 2014

wypisuje:

editor set to /usr/bin/vim

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