From 92af3766ecc456bd8ade8fe5746d27f4557fdaa8 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 20 Jul 2015 15:50:04 +0000 Subject: Add an option (history-file) for a file to save/restore command prompt history, from Olof-Joachim Frahm. --- server.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server.c') diff --git a/server.c b/server.c index 001a404c..d1c0bb3b 100644 --- a/server.c +++ b/server.c @@ -240,6 +240,7 @@ server_start(int lockfd, char *lockfile) cfg_add_cause("%s: %s", cfg_file, cause); } cmdq_continue(cfg_cmd_q); + status_prompt_load_history(); server_add_accept(0); @@ -250,6 +251,7 @@ server_start(int lockfd, char *lockfile) set_signals(server_signal_callback); server_loop(); + status_prompt_save_history(); exit(0); } -- cgit