Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@marcioalthmann
Created June 23, 2015 23:17
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 marcioalthmann/4ab822e95f5e8f122acb to your computer and use it in GitHub Desktop.
Save marcioalthmann/4ab822e95f5e8f122acb to your computer and use it in GitHub Desktop.
Build system de C para o Sublime Text com output no Terminal do OSX
{
"cmd": ["gcc", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c",
"variants":
[
{
"name": "Run",
"cmd": ["bash", "-c", "gcc '${file}' -o '${file_path}/${file_base_name}' && open -a Terminal.app '${file_path}/${file_base_name}'"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment