mirror of https://github.com/Hilbis/Hilbish
fix: reorder init code, making hilbish faster when used non-interactively
parent
941902f43b
commit
8d5e36bcde
12
main.go
12
main.go
|
@ -108,15 +108,12 @@ func main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
go HandleSignals()
|
|
||||||
LuaInit()
|
LuaInit()
|
||||||
|
|
||||||
RunLogin()
|
RunLogin()
|
||||||
|
RunInput(*cmdflag)
|
||||||
RunConfig(*configflag)
|
RunConfig(*configflag)
|
||||||
|
|
||||||
readline.Completer = readline.FilenameCompleter
|
|
||||||
readline.LoadHistory(homedir + "/.hilbish-history")
|
|
||||||
|
|
||||||
RunInput(*cmdflag)
|
|
||||||
if getopt.NArgs() > 0 {
|
if getopt.NArgs() > 0 {
|
||||||
err := l.DoFile(getopt.Arg(0))
|
err := l.DoFile(getopt.Arg(0))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -126,6 +123,11 @@ func main() {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
readline.Completer = readline.FilenameCompleter
|
||||||
|
readline.LoadHistory(homedir + "/.hilbish-history")
|
||||||
|
|
||||||
|
go HandleSignals()
|
||||||
|
|
||||||
for interactive {
|
for interactive {
|
||||||
running = false
|
running = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue