2
3
镜像自地址 https://github.com/sammy-ette/Hilbish 已同步 2025-08-10 02:52:03 +00:00

fix!: change config path when custom config dir is used to be init.lua instead of .hilbishrc.lua

这个提交包含在:
TorchedSammy 2022-03-06 14:39:11 -04:00
父节点 4ef6c7d5c0
当前提交 4364031b16
签署人:: sammyette
GPG 密钥 ID: 904FC49417B44DCD

查看文件

@ -55,7 +55,7 @@ func main() {
defaultConfPath = filepath.Join(confDir, "hilbish", "init.lua") defaultConfPath = filepath.Join(confDir, "hilbish", "init.lua")
} else { } else {
// else do ~ substitution // else do ~ substitution
defaultConfPath = filepath.Join(strings.Replace(defaultConfDir, "~", homedir, 1), ".hilbishrc.lua") defaultConfPath = filepath.Join(strings.Replace(defaultConfDir, "~", homedir, 1), "init.lua")
} }
if defaultHistDir == "" { if defaultHistDir == "" {
defaultHistPath = filepath.Join(userDataDir, "hilbish", ".hilbish-history") defaultHistPath = filepath.Join(userDataDir, "hilbish", ".hilbish-history")