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

zstyle for function instead of command?



I have defined the following function:

v () {
        '/cygdrive/c/Vim/vim71/gvim.exe' $* &
}

I can do

% zstyle ':completion:*:*:gvim:*:*' file-patterns '*.py' '*.*'

and get gvim to complete first on *.py files, but it doesn't work with
the function. In other words,

% v <TAB>
Does not restrict completions to *.py files, even if they are there.

I have tried doing
% zstyle ':completion:*:*:v:*:*' file-patterns '*.py' '*.*'

but that doesn't work either.

Little help?



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