On Saturday, November 3, 2018 10:29 AM, Diogo Galvao <diog...@gmail.com> wrote:
> Em sex, 2 de nov de 2018 às 19:06, li...@wrant.com escreveu:
>
> > I use these bindings and history control options in the $HOME/.profile:
> > bind -m '^L'=^U\ clear'^J^Y'
> > bind -m '^[^L'=^U\ reset\;clear'^J^Y'
> > export HISTCONTROL=ignoredups:ignorespace
>
> Since June 18 [1] there's a new clear-screen editing command that we can
> bind accordingly:
>
> bind ^L=clear-screen
>
> It's been working like a charm.
>
> [1]: https://cvsweb.openbsd.org/src/bin/ksh/ksh.1#rev1.201
>
> Yours,
> Diogo

Ah, perfect - finally. This is way cleaner, perfect even - the previous
solution had the space prefix history filtering quirk and would also
flash the word "clear" on the screen when pressing ctrl+L.

Works out of the box in 6.4. Thanks a ton.

Tinker

Reply via email to