mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
add OLLAMA_NOHISTORY to turn off history in interactive mode (#4508)
This commit is contained in:
parent
ba04afc9a4
commit
105186aa17
2 changed files with 30 additions and 5 deletions
|
@ -182,6 +182,10 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if os.Getenv("OLLAMA_NOHISTORY") != "" {
|
||||
scanner.HistoryDisable()
|
||||
}
|
||||
|
||||
fmt.Print(readline.StartBracketedPaste)
|
||||
defer fmt.Printf(readline.EndBracketedPaste)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue