Tuesday, July 31, 2018

Re: Keeping clear out of history

> Check out HISTCONTROL[1] and ignorespace in particular. Adding something
> along the lines to your ~/.kshrc should do the trick:
>
> HISTCONTROL=ignorespace
> bind -m '^L'='^U clear^J^Y' # note the intentional space before clear
>
> [1] https://man.openbsd.org/ksh#HISTCONTROL

Actually this worked out to be the cleanest for my purposes. Again thank you.

Ken

No comments:

Post a Comment