mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-01 19:23:24 +00:00
fix: initialize lua api before handling signals (fixes #236)
This commit is contained in:
parent
f97a04179d
commit
e2cf417144
4
main.go
4
main.go
@ -115,9 +115,11 @@ func main() {
|
||||
os.Setenv("SHELL", os.Args[0])
|
||||
}
|
||||
|
||||
go handleSignals()
|
||||
lr = newLineReader("", false)
|
||||
luaInit()
|
||||
|
||||
go handleSignals()
|
||||
|
||||
// If user's config doesn't exixt,
|
||||
if _, err := os.Stat(defaultConfPath); os.IsNotExist(err) && *configflag == defaultConfPath {
|
||||
// Read default from current directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user