Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de)
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Cygwin List" <Cygwin@Sourceware.Cygnus.Com>
Subject: How to complete in /cygdrive and //server/share in zsh
Date: Fri, 6 Jul 2001 15:28:04 +0400
Message-ID: <005d01c1060e$b8c631f0$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006

If you are using current zsh and new completion (compinit), you can complete
inside of /cygdrive and network share using fake-files style. E.g. with

zstyle ':completion:*' fake-files /:cygdrive '/cygdrive:c d e h' //:itsrm2
'//itsrm2:source Linux'

ls /c/d/m/cTAB
  gives you
ls /cygdrive/d/My\ Downloads/cygwin

and

ls //i/l/m/u
   results in
ls //itsrm2/Linux/Mandrake/updates

(of course, to get case-insensitive completion a bit more setup is needed).

Parsing output of mount and net view (to get one-for-all startup file) is
left for reader :-)

-andrej


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

