From 2406abdb76a2c6dfb3da364a3997fb6d422e759d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Dragi=C4=87?= Date: Sat, 3 Jan 2015 23:46:19 +0100 Subject: [PATCH] FS-7128 fs_cli: ignore duplicate lines in history --- libs/esl/fs_cli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index bab2d5b3b2..acfa0c2c3e 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -1674,6 +1674,8 @@ int main(int argc, char *argv[]) goto done; } history(myhistory, &ev, H_SETSIZE, 800); + /* Ignore duplicate lines */ + history(myhistory, &ev, H_SETUNIQUE, 1); el_set(el, EL_HIST, history, myhistory); if (use_history_file) history(myhistory, &ev, H_LOAD, hfile); el_source(el, NULL);