mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Ommits from redis-cli's history
This commit is contained in:
parent
764b420f5f
commit
9f32d0eed2
@ -1945,8 +1945,12 @@ static void repl(void) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Won't save auth command in history file */
|
||||
if (!(argv && argc > 0 && !strcasecmp(argv[0+skipargs], "auth"))) {
|
||||
/* Won't save auth or acl setuser commands in history file */
|
||||
if (!(argv && argc > 0 &&
|
||||
(!strcasecmp(argv[0+skipargs], "auth") ||
|
||||
(skipargs + 1 < argc &&
|
||||
!strcasecmp(argv[0+skipargs], "acl") &&
|
||||
!strcasecmp(argv[0+skipargs+1], "setuser"))))) {
|
||||
if (history) linenoiseHistoryAdd(line);
|
||||
if (historyfile) linenoiseHistorySave(historyfile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user