mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 20:00:01 +08:00
Revert "Save history on exec"
This reverts commit 9d0050023c
.
This change was not necessary. History is already saved on exec().
This commit is contained in:
parent
7a0e72bfa9
commit
a389ca694c
|
@ -382,14 +382,6 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
|
||||
const struct config_paths_t paths = determine_config_directory_paths(argv[0]);
|
||||
|
||||
// save history both on exit and on exec
|
||||
if (is_interactive_session) {
|
||||
before_exit.emplace([=]() {
|
||||
history_save_all();
|
||||
});
|
||||
}
|
||||
|
||||
env_init(&paths);
|
||||
// Set features early in case other initialization depends on them.
|
||||
// Start with the ones set in the environment, then those set on the command line (so the
|
||||
|
@ -480,6 +472,7 @@ int main(int argc, char **argv) {
|
|||
before_exit.pop();
|
||||
}
|
||||
|
||||
history_save_all();
|
||||
proc_destroy();
|
||||
exit_without_destructors(exit_status);
|
||||
return EXIT_FAILURE; // above line should always exit
|
||||
|
|
Loading…
Reference in New Issue
Block a user