mirror of https://github.com/Hilbis/Hilbish
fix: dont write history automatically with rl library
parent
1cb536b1ac
commit
0637f2763b
1
rl.go
1
rl.go
|
@ -23,6 +23,7 @@ func newLineReader(prompt string) *lineReader {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
rl.SetHistoryCtrlR("file", fileHist)
|
rl.SetHistoryCtrlR("file", fileHist)
|
||||||
|
rl.HistoryAutoWrite = false
|
||||||
rl.ShowVimMode = false
|
rl.ShowVimMode = false
|
||||||
rl.ViModeCallback = func(mode readline.ViMode) {
|
rl.ViModeCallback = func(mode readline.ViMode) {
|
||||||
modeStr := ""
|
modeStr := ""
|
||||||
|
|
Loading…
Reference in New Issue