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

Re: default to file completion



[ Quoting <schaefer@xxxxxxxxxxxxxxxx> at 12:45 on Dec 23 in "Re: default to file ..." ]
> Although it's not documented in the man pages, this can also be done by
> redefining the function _first (which by default is a no-op).  Hence:
> 
>     _first() {
>       if [[ CURRENT -gt 1 && "${words[1]}" = ./* ]];
>       then
>         _compskip=all
>         _files
>       fi
>     }
> 
> There's a much more complicated example as a large comment in the _first
> function that is supplied with the shell.

Thanks! Very helpful.

 grtz,

-- 
    Miek

Attachment: signature.asc
Description: Digital signature



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