diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs index 55cc643dcedb..4d0f12337154 100644 --- a/tvix/eval/src/main.rs +++ b/tvix/eval/src/main.rs @@ -42,10 +42,12 @@ fn run_prompt() { let mut rl = Editor::<()>::new().expect("should be able to launch rustyline"); let history_path = match state_dir() { + // Attempt to set up these paths, but do not hard fail if it + // doesn't work. Some(mut path) => { + std::fs::create_dir_all(&path).ok(); path.push("history.txt"); rl.load_history(&path).ok(); - Some(path) } |