mirror of https://github.com/Hilbis/Hilbish
fix: properly default config dir to xdg dir
parent
d58617b173
commit
b387b18923
2
main.go
2
main.go
|
@ -43,7 +43,7 @@ func main() {
|
||||||
|
|
||||||
if defaultConfDir == "" {
|
if defaultConfDir == "" {
|
||||||
// we'll add *our* default if its empty (wont be if its changed comptime)
|
// we'll add *our* default if its empty (wont be if its changed comptime)
|
||||||
if _, err := os.Stat(filepath.Join(confDir, "hilbish", "hilbishrc.lua")); os.IsNotExist(err) {
|
if _, err := os.Stat(filepath.Join(confDir, "hilbish")); os.IsNotExist(err) {
|
||||||
defaultConfPath = filepath.Join(homedir, "/.hilbishrc.lua")
|
defaultConfPath = filepath.Join(homedir, "/.hilbishrc.lua")
|
||||||
} else {
|
} else {
|
||||||
defaultConfPath = filepath.Join(confDir, "hilbish", "hilbishrc.lua")
|
defaultConfPath = filepath.Join(confDir, "hilbish", "hilbishrc.lua")
|
||||||
|
|
Loading…
Reference in New Issue