mirror of https://github.com/Hilbis/Hilbish
fix: prefer to run preload in cwd first
parent
0ddfc5bea0
commit
630d7dde9c
4
lua.go
4
lua.go
|
@ -65,9 +65,9 @@ func LuaInit() {
|
||||||
.. os.getenv 'HOME' .. '/.local/share/hilbish/libs/?.lua'
|
.. os.getenv 'HOME' .. '/.local/share/hilbish/libs/?.lua'
|
||||||
`)
|
`)
|
||||||
|
|
||||||
err := l.DoFile("/usr/share/hilbish/preload.lua")
|
err := l.DoFile("preload.lua")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = l.DoFile("preload.lua")
|
err = l.DoFile("/usr/share/hilbish/preload.lua")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(os.Stderr,
|
fmt.Fprintln(os.Stderr,
|
||||||
"Missing preload file, builtins may be missing.")
|
"Missing preload file, builtins may be missing.")
|
||||||
|
|
Loading…
Reference in New Issue