chore: add dataDir var

pull/78/head
sammyette 2021-10-14 19:46:25 -04:00
parent e4833bdba9
commit f9133584d4
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
2 changed files with 6 additions and 4 deletions

View File

@ -13,6 +13,7 @@ var (
.. hilbish.xdg.config .. '/hilbish/?/init.lua' .. hilbish.xdg.config .. '/hilbish/?/init.lua'
.. hilbish.xdg.config .. '/hilbish/?/?.lua' .. hilbish.xdg.config .. '/hilbish/?/?.lua'
.. hilbish.xdg.config .. '/hilbish/?.lua'` .. hilbish.xdg.config .. '/hilbish/?.lua'`
preloadPath = "/usr/share/hilbish/preload.lua" dataDir = "/usr/share/hilbish"
sampleConfPath = "/usr/share/hilbish/.hilbishrc.lua" // Path to default/sample config preloadPath = dataDir + "/preload.lua"
sampleConfPath = dataDir + "/.hilbishrc.lua" // Path to default/sample config
) )

View File

@ -7,6 +7,7 @@ var (
requirePaths = `';./libs/?/init.lua;./?/init.lua;./?/?.lua' requirePaths = `';./libs/?/init.lua;./?/init.lua;./?/?.lua'
.. hilbish.home .. '\\Appdata\\Roaming\\Hilbish\\libs\\?\\init.lua;' .. hilbish.home .. '\\Appdata\\Roaming\\Hilbish\\libs\\?\\init.lua;'
.. hilbish.home .. '\\Appdata\\Roaming\\Hilbish\\libs\\?\\?.lua;'` .. hilbish.home .. '\\Appdata\\Roaming\\Hilbish\\libs\\?\\?.lua;'`
preloadPath = "~\\Appdata\\Roaming\\Hilbish\\preload.lua" // ~ and \ gonna cry? dataDir = "~\\Appdata\\Roaming\\Hilbish" // ~ and \ gonna cry?
sampleConfPath = "~\\Appdata\\Roaming\\Hilbish\\hilbishrc.lua" // Path to default/sample config preloadPath = dataDir + "\\preload.lua"
sampleConfPath = dataDir + "\\hilbishrc.lua" // Path to default/sample config
) )