[ { "label": "Build & Run Current File", "command": "chcp 65001; if (!(Test-Path ./output)) { mkdir ./output }; $rand = -join ((97..122) | Get-Random -Count 6 | % {[char]$_}); $outputFile = \"./output/${ZED_STEM}_$rand.exe\"; gcc -Wall -Wextra -g -std=c11 -O2 $ZED_FILE -o $outputFile -finput-charset=utf-8 -fexec-charset=utf-8; if ($?) { &$outputFile }", "use_new_terminal": false, "allow_concurrent_runs": false, "reveal": "always", "reveal_target": "dock", "hide": "never", "shell": "system", "show_summary": true, "show_command": true, }, { "label": "Build & Run Current File (Linux - Fish)", "command": "mkdir -p ./output; set rand (tr -dc 'a-z' < /dev/urandom | head -c 6); set outputFile \"./output/${ZED_STEM}_$rand\"; gcc -Wall -Wextra -g -std=c11 -O2 \"$ZED_FILE\" -o \"$outputFile\"; and \"$outputFile\"", "use_new_terminal": false, "allow_concurrent_runs": false, "reveal": "always", "reveal_target": "dock", "hide": "never", "shell": "system", "show_summary": true, "show_command": true, }, ]