@@ -17,24 +17,32 @@ made using this module affect the behaviour of both the interpreter's
1717interactive prompt and the prompts offered by the built-in :func: `input `
1818function.
1919
20+ Readline keybindings may be configured via an initialization file, typically
21+ ``.inputrc `` in your home directory. See `Readline Init File
22+ <https://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html#SEC9> `_
23+ in the GNU Readline manual for information about the format and
24+ allowable constructs of that file, and the capabilities of the
25+ Readline library in general.
26+
2027.. note ::
2128
2229 The underlying Readline library API may be implemented by
2330 the ``libedit `` library instead of GNU readline.
24- On MacOS X the :mod: `readline ` module detects which library is being used
31+ On macOS the :mod: `readline ` module detects which library is being used
2532 at run time.
2633
2734 The configuration file for ``libedit `` is different from that
2835 of GNU readline. If you programmatically load configuration strings
2936 you can check for the text "libedit" in :const: `readline.__doc__ `
3037 to differentiate between GNU readline and libedit.
3138
32- Readline keybindings may be configured via an initialization file, typically
33- ``.inputrc `` in your home directory. See `Readline Init File
34- <https://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html#SEC9> `_
35- in the GNU Readline manual for information about the format and
36- allowable constructs of that file, and the capabilities of the
37- Readline library in general.
39+ If you use *editline */``libedit `` readline emulation on macOS, the
40+ initialization file located in your home directory is named
41+ ``.editrc ``. For example, the following content in ``~/.editrc `` will
42+ turn ON *vi * keybindings and TAB completion::
43+
44+ python:bind -v
45+ python:bind ^I rl_complete
3846
3947
4048Init file
0 commit comments