readline-binding: Readline-like key bindings

Table of content


The readline-binding module provides GNU readline-like key bindings, such as binding Ctrl-A to move the cursor to the start of the line. GNU readline bindings are the default for shells such as Bash. So if you are migrating from Bash to Elvish you probably want to add the following to your rc.elv:

use readline-binding

Note that this will override some of the standard bindings. For example, Ctrl-L will be bound to a function that clears the terminal screen rather than start location mode. The standard bindings are usually relocated to use Alt as the modifier – the location mode is bound to Alt-L for example.

See the source code for details.