summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-12-06 18:28:55 +0800
committerGitHub <noreply@github.com>2024-12-06 18:28:55 +0800
commitaf4ff7afe9c8268a62d31aa3ede59fbc81d6e946 (patch)
tree42526e8e4e2641f8728df5b85caf953e6e5b937a /src/main.rs
parentb164a1587deff738d04a75665bdb863d82b3264c (diff)
downloadaichat-af4ff7afe9c8268a62d31aa3ede59fbc81d6e946.tar.gz
refactor: change config field name (#1042)
append_command_to_history_file => save_shell_history
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 97fbf72..11fea86 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -270,7 +270,7 @@ async fn shell_execute(
"e" => {
debug!("{} {:?}", shell.cmd, &[&shell.arg, &eval_str]);
let code = run_command(&shell.cmd, &[&shell.arg, &eval_str], None)?;
- if code == 0 && config.read().append_command_to_history_file {
+ if code == 0 && config.read().save_shell_history {
let _ = append_to_shell_history(&shell.name, &eval_str, code);
}
process::exit(code);