mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
refactor: 将默认路径从/leonos更改为/rc
修改多个文件中的默认路径变量,将/leonos统一替换为/rc,以简化路径命名并保持一致性
This commit is contained in:
@@ -53,6 +53,6 @@ function nEnv.os.version()
|
||||
return "LeonOS 1.0 ALpha 1"
|
||||
end
|
||||
|
||||
local func, err = loadfile("/leonos/programs/shell.lua", "t", nEnv)
|
||||
local func, err = loadfile("/rc/programs/shell.lua", "t", nEnv)
|
||||
if not func then error(err, 0) end
|
||||
func()
|
||||
|
||||
@@ -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("/leonos/editors/advanced.lua", ...)
|
||||
df("/rc/editors/advanced.lua", ...)
|
||||
else
|
||||
df("/leonos/editors/basic.lua", ...)
|
||||
df("/rc/editors/basic.lua", ...)
|
||||
end
|
||||
|
||||
@@ -74,7 +74,7 @@ for k, v in pairs(aliases) do
|
||||
shell.setAlias(k, v)
|
||||
end
|
||||
|
||||
local completions = "/leonos/completions"
|
||||
local completions = "/rc/completions"
|
||||
for _, prog in ipairs(fs.list(completions)) do
|
||||
dofile(fs.combine(completions, prog))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user