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

Re: Ignore patterns for alias



Hi Jérémie,

works perfectly, thank you!

/Sebastian

On 24/01/17 10:32, Jérémie Roquet wrote:
Hi Sebastian,

2017-01-24 9:23 GMT+01:00 Sebastian Blask <blask@xxxxxx>:
I expected completions to work on what is
actually written on the command line and not on what it is aliased to. Is
there a way to get it to work? Ideally so that this:

zstyle ':completion:*:*:vim:*:*files' ignored-patterns '*.pyc'

works out of the box?

Not exactly what you are looking for, but using functions instead of
aliases solves a bunch of various issues in zsh (not only related to
completion).

So, if instead of “alias vim="exec_scmb_expand_args /usr/bin/vim"” you
had something like “vim() { exec_scmb_expand_args /usr/bin/vim $@ }”,
things might behave the way you want.

Best regards,




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