mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
Shell: Save the history when quitting via the exit builtin
This commit is contained in:
parent
ce61cad933
commit
abfcd7b1b8
Notes:
sideshowbarker
2024-07-19 06:05:14 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/abfcd7b1b83 Pull-request: https://github.com/SerenityOS/serenity/pull/2398 Reviewed-by: https://github.com/awesomekling
|
@ -345,6 +345,7 @@ int Shell::builtin_exit(int, const char**)
|
|||
}
|
||||
}
|
||||
stop_all_jobs();
|
||||
save_history();
|
||||
printf("Good-bye!\n");
|
||||
exit(0);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue