LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ledit

provides line editing capabilities to programs that read from standard input

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.

INSTALL

sudo apt install ledit
copy
brew install ledit
copy
nix profile install nixpkgs#ledit
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid