Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion for compilers (cc, gcc...) and -o
- X-seq: zsh-workers 45749
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: completion for compilers (cc, gcc...) and -o
- Date: Thu, 30 Apr 2020 22:54:09 +0200
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- In-reply-to: <CAH+w=7aLoF6CtboDfaWoi2czcLsFx7hDTLgXzONRiG51AR5Ayg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20200430085111.GA1649750@zira.vinc17.org> <20200430181459.051d3fd1@tarpaulin.shahaf.local2> <20200430201747.GA818727@zira.vinc17.org> <CAH+w=7aLoF6CtboDfaWoi2czcLsFx7hDTLgXzONRiG51AR5Ayg@mail.gmail.com>
On 2020-04-30 13:32:25 -0700, Bart Schaefer wrote:
> On Thu, Apr 30, 2020 at 1:18 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> >
> > (perhaps this should be configurable by the user) for -o:
>
> Hmm, people seem not to have seen my zstyle example?
I did, and tested it. Thanks a lot. A few comments:
It worked only with "gcc". I've changed it to use
":completion::complete:(c99|cc|gcc*):option-o-1:"
together with
compdef c99=gcc
to support the c99 utility.
Now I'm wondering whether there is a way to automatically apply
the zstyle to the _gcc command list (I also sometimes use clang
and so on).
I was also wondering whether there is a way to get the extension
list automatically from the one in _gcc (assuming that it could
evolve[*]).
[*] On this subject, I'm quite sure I've already used the .cpp
extension. I do not program in C++, but sometimes have to do
some tests of small examples... I think that it should be added
to the standard list, but C++ programmers may tell you more.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author