delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/06/07:28:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer david.siemens.de)
From: "Andrej Borsenkow" <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
To: "Cygwin List" <Cygwin AT Sourceware DOT Cygnus DOT 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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019