mirror of https://github.com/Hilbis/Hilbish
Compare commits
2 Commits
1868715b8a
...
3c4351a8fe
Author | SHA1 | Date |
---|---|---|
sammy | 3c4351a8fe | |
sammy | 3cb8e64dc0 |
6
lua.go
6
lua.go
|
@ -50,8 +50,10 @@ func LuaInit(confpath string) {
|
||||||
|
|
||||||
// Add more paths that Lua can require from
|
// Add more paths that Lua can require from
|
||||||
l.DoString(`package.path = package.path
|
l.DoString(`package.path = package.path
|
||||||
.. ';./libs/?/init.lua;/usr/share/hilbish/libs/?/init.lua'
|
.. ';./libs/?/init.lua;./?/init.lua;./?/?.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")
|
err := l.DoFile("/usr/share/hilbish/preload.lua")
|
||||||
|
|
Loading…
Reference in New Issue