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

Adding to the history from within a widget



Hi,

I tried to use "print -s xxxxx" to add entries to the history from within a
widget but it doesn't seem to work, although executing the function not as
a widget does allow me to add entries to the history.

Is there any way to add an entry to the history from within a widget.

For now I have resorted to setting hist_ignore_space and then binding the
function using "bindkey -s" and providing a preceding space, but this feels
a bit hacky.

Thanks,

Piers


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