mirror of https://github.com/Hilbis/Hilbish
chore: revert "fix: reordering init code [...]"
this reverts commit 8d5e36bcde
.
apparently, when i reordered the code it caused hilbish's history
to be emptied and not work when used interactively
i literally have no idea why
pull/59/head
parent
8f94990fc3
commit
0acae37704
12
main.go
12
main.go
|
@ -108,12 +108,15 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
go HandleSignals()
|
||||
LuaInit()
|
||||
|
||||
RunLogin()
|
||||
RunInput(*cmdflag)
|
||||
RunConfig(*configflag)
|
||||
|
||||
readline.Completer = readline.FilenameCompleter
|
||||
readline.LoadHistory(homedir + "/.hilbish-history")
|
||||
|
||||
RunInput(*cmdflag)
|
||||
if getopt.NArgs() > 0 {
|
||||
err := l.DoFile(getopt.Arg(0))
|
||||
if err != nil {
|
||||
|
@ -123,11 +126,6 @@ func main() {
|
|||
os.Exit(0)
|
||||
}
|
||||
|
||||
readline.Completer = readline.FilenameCompleter
|
||||
readline.LoadHistory(homedir + "/.hilbish-history")
|
||||
|
||||
go HandleSignals()
|
||||
|
||||
for interactive {
|
||||
running = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue