提交 2406abdb authored 作者: Dušan Dragić's avatar Dušan Dragić

FS-7128 fs_cli: ignore duplicate lines in history

上级 0bec209a
...@@ -1674,6 +1674,8 @@ int main(int argc, char *argv[]) ...@@ -1674,6 +1674,8 @@ int main(int argc, char *argv[])
goto done; goto done;
} }
history(myhistory, &ev, H_SETSIZE, 800); history(myhistory, &ev, H_SETSIZE, 800);
/* Ignore duplicate lines */
history(myhistory, &ev, H_SETUNIQUE, 1);
el_set(el, EL_HIST, history, myhistory); el_set(el, EL_HIST, history, myhistory);
if (use_history_file) history(myhistory, &ev, H_LOAD, hfile); if (use_history_file) history(myhistory, &ev, H_LOAD, hfile);
el_source(el, NULL); el_source(el, NULL);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论