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.

See the source code for details.