However, I think even that is overkill -- there isn't anything that
matches the pattern /?/ yet is not a drive letter, is there? So just
if [[ $PREFIX != /*/*/* ]] && compset -P /?/
should set $IPREFIX to the drive path.
Works, thank you!
On Fri, Nov 8, 2024 at 12:06 AM Ram Rachum <ram@xxxxxxxxxx> wrote:
>
> Oh, now I find that it only works when autocompleting the first folder and not any subsequent folders... So it'll complete /c/win to /c/Windows but it won't complete /c/Windows/sys to /c/Windows/System.
Hm, I'd like to see ^X? (completion debugging) output for that,
because it might be related to the attempt to match
case-insensitively.