Compare commits

..

2 Commits

Author SHA1 Message Date
sammy 3c4351a8fe fix: remove print 2021-04-09 23:14:10 -04:00
sammy 3cb8e64dc0 feat: add more require paths and change ordering 2021-04-09 23:13:28 -04:00
1 changed files with 4 additions and 2 deletions

6
lua.go
View File

@ -50,8 +50,10 @@ func LuaInit(confpath string) {
// Add more paths that Lua can require from
l.DoString(`package.path = package.path
.. ';./libs/?/init.lua;/usr/share/hilbish/libs/?/init.lua'
.. ';./?/init.lua;./?/?.lua'
.. ';./libs/?/init.lua;./?/init.lua;./?/?.lua'
.. ';/usr/share/hilbish/libs/?/init.lua;'
.. os.getenv 'HOME' .. '/.local/share/hilbish/libs/?/init.lua;'
.. os.getenv 'HOME' .. '/.local/share/hilbish/libs/?/?.lua'
`)
err := l.DoFile("/usr/share/hilbish/preload.lua")