Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hct = _G.help.completeTopic
- local sc = shell.complete
- local tc = _G.textutils.complete
- local fc = _G.fs.complete
- local function overwrite()
- return {}
- end
- _G.autocomplete = {}
- function _G.autocomplete.disable()
- _G.help.completeTopic = overwrite
- shell.complete = overwrite
- _G.textutils.complete = overwrite
- _G.fs.complete = overwrite
- end
- function _G.autocomplete.enable()
- _G.help.completeTopic = hct
- shell.complete = sc
- _G.textutils.complete = tc
- _G.fs.complete = fc
- end
- _G.autocomplete.disable()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement