Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: using history in a command processor



On Sep 17, 10:59pm, Rocky Bernstein wrote:
}
} In other words, what I'm looking for is an equivalent to what in bash  is
} "history -s"

You want "print -s".  Functions/Misc/sticky-note has an example of this.
So does Functions/Misc/zcalc, which effectively IS a command processor.

} Also, is there a way to delete an entry?

Only by having them fall off due to HISTSIZE or be skipped by one of the
HIST_IGNORE_* setopts.



Messages sorted by: Reverse Date, Date, Thread, Author