mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
refactor: 将默认路径从/rc更改为/leonos
更新所有相关文件中的路径引用,统一使用/leonos作为系统目录。同时更新版本号至0.1.7。
This commit is contained in:
@@ -6,7 +6,7 @@ local expect = require("cc.expect").expect
|
||||
local completion = require("cc.completion")
|
||||
|
||||
local help = {}
|
||||
help._DEFAULT_PATH = "/rc/help"
|
||||
help._DEFAULT_PATH = "/leonos/help"
|
||||
|
||||
function help.init()
|
||||
local vars = thread.vars()
|
||||
|
||||
@@ -14,7 +14,7 @@ elseif mcver <= 12 or _HOST:match("LeonOS%-PC") then
|
||||
kmap = "lwjgl2"
|
||||
end
|
||||
|
||||
local base = dofile("/rc/keymaps/"..kmap..".lua")
|
||||
local base = dofile("/leonos/keymaps/"..kmap..".lua")
|
||||
local lib = {}
|
||||
|
||||
-- reverse-index it!
|
||||
|
||||
@@ -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 ".:/rc/programs"
|
||||
vars.path = vars.path or ".:/leonos/programs"
|
||||
vars.env = env or _ENV or _G
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user