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

修改多个文件中的默认路径变量,将/leonos统一替换为/rc,以简化路径命名并保持一致性
This commit is contained in:
2025-09-01 10:33:32 +08:00
parent 2b26c66112
commit 3009389313
13 changed files with 18 additions and 18 deletions

View File

@@ -6,7 +6,7 @@ local expect = require("cc.expect").expect
local completion = require("cc.completion")
local help = {}
help._DEFAULT_PATH = "/leonos/help"
help._DEFAULT_PATH = "/rc/help"
function help.init()
local vars = thread.vars()

View File

@@ -14,7 +14,7 @@ elseif mcver <= 12 or _HOST:match("LeonOS%-PC") then
kmap = "lwjgl2"
end
local base = dofile("/leonos/keymaps/"..kmap..".lua")
local base = dofile("/rc/keymaps/"..kmap..".lua")
local lib = {}
-- reverse-index it!

View File

@@ -32,7 +32,7 @@ function shell.init(env)
copyIfPresent("aliases", vars)
completions[vars.parentShell or 0] = completions[vars.parentShell or 0] or {}
vars.path = vars.path or ".:/leonos/programs"
vars.path = vars.path or ".:/rc/programs"
vars.env = env or _ENV or _G
end