mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +00:00
Aviso.
This commit is contained in:
parent
91093f2ab2
commit
3e699db57c
1 changed files with 3 additions and 0 deletions
|
@ -217,6 +217,7 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
|
||||||
let _ = ansi_term::enable_ansi_support();
|
let _ = ansi_term::enable_ansi_support();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we are ok if history does not exist
|
||||||
let _ = rl.load_history("history.txt");
|
let _ = rl.load_history("history.txt");
|
||||||
|
|
||||||
let ctrl_c = Arc::new(AtomicBool::new(false));
|
let ctrl_c = Arc::new(AtomicBool::new(false));
|
||||||
|
@ -297,6 +298,8 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
|
||||||
}
|
}
|
||||||
ctrlcbreak = false;
|
ctrlcbreak = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we are ok if we can not save history
|
||||||
let _ = rl.save_history("history.txt");
|
let _ = rl.save_history("history.txt");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue