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

Re: save a command in history from within the widget



On Sun, Oct 25, 2020 at 9:24 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> I don't understand why you can't drop a script literally called «g»
> into a directory in $path and implement in it whatever logic you want.
> (Or possibly a function, depending on your use-case.)

I highly recommend following this advice. Write a script or a function
called "g" and remove the custom accept-line widget.

> But, this script is only for my personal use, so I will continue
> tweaking it as per my requirement.

The value of the advice is not diminished by "g" being for your personal use.

Roman.




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