Skip to content

Instantly share code, notes, and snippets.

@cjtapper
Last active July 24, 2024 14:11
Show Gist options
  • Select an option

  • Save cjtapper/1118af727ffd903239050fcc61b3edb2 to your computer and use it in GitHub Desktop.

Select an option

Save cjtapper/1118af727ffd903239050fcc61b3edb2 to your computer and use it in GitHub Desktop.
Sublime Text 3 build system for a single C file. Compiles with gcc and runs in Terminus window.
{
"target": "terminus_exec",
"cancel": "terminus_cancel_build",
"shell_cmd" : "gcc $file_name -o ${file_base_name}",
"working_dir" : "$file_path",
"variants": [
{
"name": "Run",
"shell_cmd": "gcc $file_name -o ${file_base_name} && ${file_path}/${file_base_name}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment