配置
The core reads ~/.config/radare2/radare2rc
while starting. You can add e
commands to this file to tune the radare2 configuration to your taste.
To prevent radare2 from parsing this file at startup, pass it the -N
option.
All the configuration of radare2 is done with the eval
commands. A typical startup configuration file looks like this:
The configuration can also be changed with -e
command-line option. This way you can adjust configuration from the command line, keeping the .radare2rc file intact. For example, to start with empty configuration and then adjust scr.color
and asm.syntax
the following line may be used:
Internally, the configuration is stored in a hash table. The variables are grouped in namespaces: cfg.
, file.
, dbg.
, scr.
and so on.
To get a list of all configuration variables just type e
in the command line prompt. To limit the output to a selected namespace, pass it with an ending dot to e
. For example, e file.
will display all variables defined inside the "file" namespace.
To get help about e
command type e?
:
A simpler alternative to the e
command is accessible from the visual mode. Type Ve
to enter it, use arrows (up, down, left, right) to navigate the configuration, and q
to exit it. The start screen for the visual configuration edit looks like this:
For configuration values that can take one of several values, you can use the =?
operator to get a list of valid values:
最后更新于
这有帮助吗?