Skip to content

Instantly share code, notes, and snippets.

@soonhokong
Last active August 29, 2015 14:16
Show Gist options
  • Save soonhokong/2efe1bf54af7d3dec095 to your computer and use it in GitHub Desktop.
Save soonhokong/2efe1bf54af7d3dec095 to your computer and use it in GitHub Desktop.
c9.io + lean
#!/usr/bin/env bash
sudo add-apt-repository --yes ppa:leanprover/lean
sudo apt-get -qq update
sudo apt-get -qq install lean
mkdir ~/workspace/.c9/runners
cat << EOF > ~/workspace/.c9/runners/Lean.run
// Create a custom Cloud9 runner - similar to the Sublime build system
// For more information see https://docs.c9.io/custom_runners.html
{
"cmd" : ["/usr/bin/lean", "\$file", "\$args"],
"info" : "Started \$project_path\$file_name",
"env" : {},
"selector" : "source.lean"
}
EOF
cat << EOF > ~/workspace/.c9/runners/HLean.run
// Create a custom Cloud9 runner - similar to the Sublime build system
// For more information see https://docs.c9.io/custom_runners.html
{
"cmd" : ["/usr/bin/lean", "\$file", "\$args"],
"info" : "Started \$project_path\$file_name",
"env" : {},
"selector" : "source.hlean"
}
EOF
@soonhokong
Copy link
Author

How to Use

curl -fsSkl https://gist.githubusercontent.com/soonhokong/2efe1bf54af7d3dec095/raw/c9io_lean.sh | bash

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