-- fg local args = {...} if #args == 0 then error("command not provided", 0) end local shell = require("shell") local thread = require("rc.thread") local path, err = shell.resolveProgram(args[1]) if not path then error(err, 0) end thread.setFocus((thread.launchTab(function() shell.exec(path, table.unpack(args, 2)) end, args[1])))