Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: simpler completion
On Tue, Jun 24, 2025 at 8:13 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2025-06-24 07:58, Bart Schaefer wrote:
> > On Mon, Jun 23, 2025 at 8:13 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> >> 4 /aWorking/Zsh/Source/Wk 1 % mnt [TAB]
> > Sorry, what's "mnt"? Zsh doesn't have a completion function for that.
> Those are just filenames, what I showed was an actual attempt at
> completion after pressing TAB.
So there's not supposed to be a space between "mnt" and "[TAB]" in
your example? Because as shown you're completing for the "mnt"
command, which could affect what happens with the file names. I
certainly don't see "Completing executable file" or "Completing shell
function" when attempting your example with a space before the tab.
If I remove the space and hit TAB directly after "mnt" then I see
those two offered, which is exactly as I'd expect because in that case
you're completing a command word rather than a file name. But in that
instance I never get any file names offered, so there's something else
about your configuration -- possibly that $path includes "."? -- that
you haven't mentioned.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author