réplica de
https://github.com/Hilbis/Hilbish
sincronizado 2025-07-18 16:52:02 +00:00
prelude is no longer. it is now nature. organized the single file prelude into multiple source files and renamed it to nature. this is coming after thought that it can turn into a general hilbish lua core, with user facing modules as well. this introduces the `nature.dirs` module, to interact and get recently changed to directories and last/old cwd.
22 linhas
806 B
Go
22 linhas
806 B
Go
// +build darwin
|
|
|
|
package main
|
|
|
|
// String vars that are free to be changed at compile time
|
|
var (
|
|
requirePaths = commonRequirePaths + `.. ';'
|
|
.. hilbish.dataDir .. '/libs/?/init.lua;'
|
|
.. hilbish.dataDir .. '/libs/?/?.lua;'` + macosUserPaths
|
|
macosUserPaths = `
|
|
.. hilbish.userDir.data .. '/hilbish/libs/?/init.lua;'
|
|
.. hilbish.userDir.data .. '/hilbish/libs/?/?.lua;'
|
|
.. hilbish.userDir.data .. '/hilbish/libs/?.lua;'
|
|
.. hilbish.userDir.config .. '/hilbish/?/init.lua;'
|
|
.. hilbish.userDir.config .. '/hilbish/?/?.lua;'
|
|
.. hilbish.userDir.config .. '/hilbish/?.lua'`
|
|
dataDir = "/usr/local/share/hilbish"
|
|
preloadPath = dataDir + "/nature/init.lua"
|
|
sampleConfPath = dataDir + "/.hilbishrc.lua" // Path to default/sample config
|
|
defaultConfDir = getenv("XDG_CONFIG_HOME", "~/.config")
|
|
)
|