LinuxCommandLibrary

ledit

TLDR

Run command with line editing

$ ledit [command]
copy
Run OCaml with line editing
$ ledit ocaml
copy
Use vi-style editing
$ ledit -v [command]
copy
Specify history file
$ ledit -h [~/.ledit_history] [command]
copy

SYNOPSIS

ledit [options] command [args...]

DESCRIPTION

ledit provides line editing capabilities to programs that read from standard input. It wraps commands to add readline-style editing, command history, and line completion.
ledit is particularly useful with interpreters and REPLs that lack built-in line editing support, such as older versions of OCaml.

PARAMETERS

-v

Use vi-style editing mode.
-e
Use emacs-style editing mode (default).
-h file
Specify history file.
-x
Expand history on space.

CAVEATS

Not needed for programs with built-in readline. May interfere with some interactive programs. History file format is specific to ledit.

HISTORY

ledit was written by Daniel de Rauglaudre as part of the Camlp5 project for use with OCaml and other interpreters lacking line editing.

SEE ALSO

rlwrap(1), readline(3), ocaml(1)

Copied to clipboard