summaryrefslogtreecommitdiffstats
path: root/iredis/data/iredisrc
blob: 6db02a719b8003d40e1d2437ea54626f61a6957c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# vi: ft=dosini
[main]
# weather display raw redis response
raw = False

# iredis use a LRU strategy to store the completions, like keys, set members,
# etc, this will set how many completions can iredis keep at most.
completer_max = 300

# Completion casing preference, options are: "lower", "upper", "auto"
completion_casing = auto

# if in newbie_mode, a description of commands and options will showup along
# with completion, encourage to enable it to who is new to redis
newbie_mode = False

# show prompt in a ranibow color
rainbow = False

# retry times for connection error and timeout
retry_times = 2

socket_keepalive = True

# IRedis support running shell command to parse the response, like this:
# > get json-str | jq .
# However that will allow any shell command to execute under iredis REPL,
# you can disable this feature by setting this to False.
# Default is True.
shell = True

# decode redis response, default None
decode =

# enable pager? default to True, you can disable it by changing it to False
enable_pager = True

# pager setting when line is too tall
# By default 'PAGER' environment variable is used
# pager = less -SRXF

# iredis will send a `INFO` command to get the server's version, this option can
# disable it
no_info = False

# iredis will show command hint on bottom bar, this option can disable it
bottom_bar = True

# Dangerous command warning mode will alert you before executing a dangerous
# command, that may cause harm to the redis-server or hang server,
# such as "KEYS", "DEL" or "SHUTDOWN".
warning = True

# IRedis log for debugging, leave this blank will disable log.
# You don't need this unless you are debugging iredis.
# Be careful this will log your commands input (include AUTH with password) to
# log file.
# eg. ~/.iredis.log
log_location =

# You can change the prompt str, if left blank, the default prompt would be:
# 127.0.0.1:6379> 
# which is rendered by "{host}:{port}[{db}]> "
# supported interpolations:
# {client_name}
# {db}
# {host}
# {path}
# {port}
# {username}
# {client_addr}
# {client_id}
# The prompt string uses python string format engine
prompt = 

# History file location
history_location = ~/.iredis_history

[alias_dsn]
# example_dsn = redis://[[username]:[password]]@localhost:6379/0
# example_dsn = rediss://[[username]:[password]]@localhost:6379/0
# example_dsn = unix://[[username]:[password]]@/path/to/socket.sock?db=0