zsh-users
 help / color / mirror / code / Atom feed
From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-users@sunsite.dk
Subject: Re: zsh's answer to the bash completion fm project
Date: Wed, 3 Apr 2002 14:24:31 +0200	[thread overview]
Message-ID: <20020403122431.GD22084@picard.franken.de> (raw)
In-Reply-To: <20020403110500.GA13869@io.com>

[-- Attachment #1: Type: text/plain, Size: 1911 bytes --]

John Buttery wrote [020403 13:33]:
>   I was just reading freshmeat and saw the "bash programmable
> completion" project listed; does anybody have any interest in doing
> something similar for/with zsh?
>   For those not familiar with it, it's basically a project to create in
> bash what in zsh would be a file containing compinit/zstyle completion
> statements; just a big, sourceable .bashrc file (loaded from and in
> addition to the user's normal .bashrc, presumably).
>   Is there perhaps already a project like this that I don't know about?
> If not, I think it would be neat to start one.  Question: if I/we were
> to start one, what's the consensus on whether compinit or zstyle should
> be used?  Admittedly I'm a relatively new zsh user, but it seems from
> reading the docs that the "zstyle" builtin is pretty new, so although it
> may be better, there may be vastly more voluminous content out there
> using the older system (kinda like it was with ipchains/iptables when
> iptables came out).  Perhaps it could use both, and if so would that be
> a Bad Thing(tm)?  Assuming nobody felt like "porting" the old compinit
> stuff to zstyle of course...
> 
>   Opinions? 

Seems like it's not needed. zsh comes with tons of functions
predefined for the new completion system ;)

Have you tried to put
   autoload -U compinit
   compinit
in your .zshrc and then type something like
   ssh tk<TAB>u<TAB>
and see how it is expanded to something like
   ssh tkoehler@unser.linux.laeuft.auf.s390.org
or something?

There's quite a lot of stuff there in zsh-4.0.x :-)

Ciao,
Thomas

-- 
 Thomas Köhler Email:   jean-luc@picard.franken.de     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2002-04-03 12:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 11:05 John Buttery
2002-04-03 12:09 ` Sven Wischnowsky
2002-04-03 14:54   ` John Buttery
2002-04-03 12:24 ` Thomas Köhler [this message]
2002-04-03 14:58   ` John Buttery
2002-04-03 15:10     ` Sven Wischnowsky
2002-04-03 15:56       ` John Buttery
2002-04-03 22:05         ` Bruce Stephens
2002-04-04  8:58           ` John Buttery
2002-04-04 10:07             ` Sven Wischnowsky
2002-04-04 13:28               ` John Buttery
2002-04-03 15:19     ` Thomas Köhler

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=20020403122431.GD22084@picard.franken.de \
    --to=jean-luc@picard.franken.de \
    --cc=zsh-users@sunsite.dk \
    /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).