From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2985 invoked from network); 11 Dec 2001 12:29:30 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?uOM8EyLoSv8pMMKgJ9BlZzW5Sct8Nkig?@203.24.36.3) by ns1.primenet.com.au with SMTP; 11 Dec 2001 12:29:30 -0000 Received: (qmail 2733 invoked from network); 11 Dec 2001 12:29:28 -0000 Received: from sunsite.dk (130.225.247.90) by proxy.melb.primenet.com.au with SMTP; 11 Dec 2001 12:29:28 -0000 Received: (qmail 23292 invoked by alias); 11 Dec 2001 12:29:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4524 Received: (qmail 23281 invoked from network); 11 Dec 2001 12:29:14 -0000 To: zsh-users@sunsite.dk (Zsh users list), Michael Wardle Subject: Re: generic filename completion like "foo --file=ba" In-reply-to: "Michael Wardle"'s message of "Tue, 11 Dec 2001 04:21:04 PST." <20011211122104.41288.qmail@web11206.mail.yahoo.com> Date: Tue, 11 Dec 2001 12:28:45 +0000 Message-ID: <28713.1008073725@csr.com> From: Peter Stephenson Michael Wardle wrote: > Hi. > > I'm a former bash user starting to learn zsh. I'm currently running > zsh 4.0.2 on Red Hat Linux, and zsh seems to be missing a feature I > like. > > In bash, I could do: > dd if=root.img of=/dev/f > > In zsh, pressing the filename completion key (tabulate) does not > produce the desired result. The new completion system will do this, and has completion of dd arguments as well. There's no mileage in trying to add this to the old system now. It's automatic if you run compinit. autoload -U compinit compinit See the zshcompsys manual page. You might want to `setopt magicequalsubst' for the best effect. This will force zsh to recognise ~-expansion after all equal signs. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************