2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 03:33:22 +00:00

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

This commit is contained in:
TorchedSammy 2022-03-06 14:39:11 -04:00
parent 4ef6c7d5c0
commit 4364031b16
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -55,7 +55,7 @@ func main() {
defaultConfPath = filepath.Join(confDir, "hilbish", "init.lua")
} else {
// 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 == "" {
defaultHistPath = filepath.Join(userDataDir, "hilbish", ".hilbish-history")