refactor: 将默认路径从/rc更改为/leonos

统一修改代码中的默认路径,从/rc变更为/leonos,以反映系统名称变更
This commit is contained in:
2025-09-01 10:15:12 +08:00
parent d23c85f08a
commit 44a696758d
12 changed files with 17 additions and 17 deletions

View File

@@ -53,6 +53,6 @@ function nEnv.os.version()
return "LeonOS 1.0 ALpha 1"
end
local func, err = loadfile("/rc/programs/shell.lua", "t", nEnv)
local func, err = loadfile("/leonos/programs/shell.lua", "t", nEnv)
if not func then error(err, 0) end
func()

View File

@@ -23,7 +23,7 @@ local settings = require("settings")
local df = function(f, ...) return assert(loadfile(f))(...) end
if term.isColor() or settings.get("edit.force_highlight") then
df("/rc/editors/advanced.lua", ...)
df("/leonos/editors/advanced.lua", ...)
else
df("/rc/editors/basic.lua", ...)
df("/leonos/editors/basic.lua", ...)
end

View File

@@ -74,7 +74,7 @@ for k, v in pairs(aliases) do
shell.setAlias(k, v)
end
local completions = "/rc/completions"
local completions = "/leonos/completions"
for _, prog in ipairs(fs.list(completions)) do
dofile(fs.combine(completions, prog))
end