Last active
December 6, 2022 00:21
-
-
Save tomodachi94/57b52cef2ad117c0b4130429dc80964a to your computer and use it in GitHub Desktop.
Bootstrap Unix-like directories onto a ComputerCraft computer's path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local shell = shell | |
if _HOST:find("Recrafted") then | |
shell = require("shell") | |
end | |
shell.run("/bin/unix-path-bootstrap.lua") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local shell = shell | |
local help = help | |
if _HOST:find("Recrafted") then | |
shell = require("shell") | |
help = require("help") | |
end | |
shell.setPath(shell.path()..":/bin") | |
help.setPath(help.path()..":/usr/share/help") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tomodachi94 add this for basic auto-completion