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

Re: [FEATURE][PATCH] Complete local executables with ./ prefix, if prefix-needed is false



On Wed, Dec 8, 2021 at 3:18 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> This is the type of thing which often can already be achieved with
> styles and, where not, a few tweaks may enable it. The nearest example
> from my own config involves using the fake style

Yeah, I was pretty sure there was a way to get here using the "fake"
style but couldn't put my finger on the argument Daniel found to argue
against changes to prefix-needed.

> The fake style is looked up in _description so a dummy call to it is one
> option. The patch below adds that but I'd be interested in any thoughts
> on that.

Is it going to matter that this happens before command-path is
consulted?  And before the defs array is passed to _alternative?

> path=( $cmdpath:A ) when the command-path style is set. That resolves
> only the first of these issues and allows for relative paths in the
> command-path style to work as intended, even if that isn't especially
> useful.

Does that have any unexpected interaction with PATH_DIRS ?




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