Compare commits

...

2 Commits

Author SHA1 Message Date
1c1a6f70a5 update README 2023-11-22 23:32:35 +01:00
37aa8abbce add v as an edit alias 2023-11-22 23:09:10 +01:00
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,5 @@
Set up on the computer with `wget https://git.navidsassan.ch/navid.sassan/computercraft/-/raw/master/get get`. Set up on the computer with `wget https://git.navidsassan.ch/navid.sassan/computercraft/-/raw/master/get get`.
Then use `get README.md` for example, to download the `README.md`. Then use `get README.md` for example, to download the `README.md`.
You can store scripts in `resourcepacks/assets/computercraft/lua/rom/programs/` on the server for them to be available on all turtles.

17
v Normal file
View File

@ -0,0 +1,17 @@
-- vi: ft=lua
-- alias for edit
local function printUsage()
print("Usage:")
print("v <filename>")
end
local args = { ... }
if #args < 1 then
printUsage()
return
end
local file = args[1]
shell.run("edit", file)