mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
add configuration of maximum history size (#563)
This commit is contained in:
@ -364,8 +364,11 @@ fn main() -> Result<()> {
|
||||
),
|
||||
))
|
||||
.with_history(Box::new(
|
||||
FileBackedHistory::with_file(1000, history_path.clone())
|
||||
.into_diagnostic()?,
|
||||
FileBackedHistory::with_file(
|
||||
config.max_history_size as usize,
|
||||
history_path.clone(),
|
||||
)
|
||||
.into_diagnostic()?,
|
||||
))
|
||||
.into_diagnostic()?
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user