zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Blask <blask@gmx.de>
To: "Jérémie Roquet" <jroquet@arkanosis.net>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Ignore patterns for alias
Date: Tue, 31 Jan 2017 03:02:30 +0100	[thread overview]
Message-ID: <55eb3d54-0759-7d2f-0cd3-089a45ed071c@gmx.de> (raw)
In-Reply-To: <CAFOazAM3L6foz81aDxHmd7AqZeJ1baXen_sMH-BH+Nokgg9e0Q@mail.gmail.com>

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@gmx.de>:
>> 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,
>


      parent reply	other threads:[~2017-01-31  2:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170124082451epcas3p217bdb55a1d8a6de091e29eff5f980eea@epcas3p2.samsung.com>
2017-01-24  8:23 ` Sebastian Blask
2017-01-24  9:53   ` Peter Stephenson
     [not found]   ` <CAFOazAM3L6foz81aDxHmd7AqZeJ1baXen_sMH-BH+Nokgg9e0Q@mail.gmail.com>
2017-01-31  2:02     ` Sebastian Blask [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55eb3d54-0759-7d2f-0cd3-089a45ed071c@gmx.de \
    --to=blask@gmx.de \
    --cc=jroquet@arkanosis.net \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).