Skip to content

Readline Functions

🛠️ Tools · ⬅ Top


Add keyboard shortcuts to your shell.

readlineConfigurationAdd

Add configuration to ~/.inputrc for a key binding

Usage

readlineConfigurationAdd [ --help ] keyStroke action

Add configuration to ~/.inputrc for a key binding

Arguments

  • --help - Optional. Flag. Display this help.
  • keyStroke - Required. String.
  • action - Required. String.

Examples

readlineConfigurationAdd "\ep" history-search-backward

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error