laixintao / iredis

Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.
https://iredis.xbin.io
BSD 3-Clause "New" or "Revised" License
2.52k stars 102 forks source link

Ignore y/n prompt #457

Closed heowc closed 1 year ago

heowc commented 1 year ago

hello. I am using iredis. 👍

I often want to ignore "Do you want to proceed" when using KEYS or DEL. Is there any way to override this?

laixintao commented 1 year ago

Hi, yes.

You can create a file called ~/.iredisrc and put follows:

[main]
warning = False

config file example and docs here:

https://github.com/laixintao/iredis/blob/master/iredis/data/iredisrc#L52