On Friday, November 2, 2018 9:11 PM, Klemens Nanni <k...@openbsd.org> wrote: > On Fri, Nov 02, 2018 at 11:03:34AM +0000, Tinker wrote: > > > Could some other ^ shortcut be an ignore-this-line-from-history marker? > > I'm inclined to say no; HISTCONTROL=ignorespace works fine and adding > yet another way to do achieve the same only to compensate user errors > is out of scope here. > > > ^I as in ignore, "bind -m '^L'=^U^Iclear'^J^Y'" :) > > ^I is tab, see `complete-list' under "Emacs editing mode" in ksh(1).
Unimportant, only for completeness to round up, I just meant: using "space prefix" as "ignore from history marker" overlaps with any other use of space prefix, such as when pasting a script with indentation. Meaning using space prefix can make things not register in the shell history, that you thought would. This would lead to someone's surprise that they are tapping arrow-up/down and can't find what they looked for, or, that someone thought they'd have a disk recording of their shell pastes and other interaction and what they get is partial data, that's all. Using a ignore marker that unlike space prefix doesn't overlap, would provide a symmetrical, coherent experience, but again this is truly unimportant. I thought ^-something could be neat if a script file cannot trig it, have not studied that. I see that ^I was taken already. Thanks, Tinker