mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 19:53:23 +00:00
chore: revert "fix: reordering init code [...]"
this reverts commit 8d5e36bcdebdbb8c00dfb02cd3175ce89dbd3a7d. 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
This commit is contained in:
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…
x
Reference in New Issue
Block a user