Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Making built-in completion recognize : as word boundary
- X-seq: zsh-workers 24639
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Making built-in completion recognize : as word boundary
- Date: Fri, 29 Feb 2008 22:23:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=oAUGe36gp1twAIvO/nJB44+KkJe0mAvNTTM8aSJlMJk=; b=drBPYvCYASmrgXHYTszBsF5liMZEQO7c34hGW/VEmmmzWnrm916Bwiv8XGpO0NEhd1bqUjxDBssJNvjwsONHoW16PMiNc8gFqPyp7e/tumC6uqghHxc2TGUVD+gSnFvYDEdgZRNfE/MfNqNYf8xKbJpzPMgr9gDRxTkvREf7n44=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dllXGtu1UpakkBk5AljM6eTIGZM522jPWnZqK1hAqFVIbAqzB/qeITUWS/y8sX+dhjJ9gzQqmcPd3f5RlJGw5CSJcRAETBlP5DcdV8HhM71a6CRwVPm+TSrcqHgw/Tsn1Zb/ioTJJZVIZ2pFCMCGqNU9Y3Yggi019miVZWfUwSE=
- In-reply-to: <20080229221711.7729241b@buddha>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080229221711.7729241b@buddha>
On 29/02/2008, Matthias B. <msbREMOVE-THIS@xxxxxxxxxxxxxxx> wrote:
> Something that's been bothering me for years now with zsh is that the
> built-in completion can't complete
>
> PATH=/usr/bin:/sb<TAB>
>
> presumably because it doesn't consider the colon a word boundary. Could
> someone please point me at the code responsible so that I can fix this.
>
> MSB
>
> p.s.: I know that the function-based completion system doesn't have this
> problem, but I don't want to use it.
path=(/usr/bin /sb<tab>
should work fine i think.
You can also make more of these automagic paired variables with some
argument to typeset.
typeset -T MYVAR myvar
myvar=(do re mi)
echo $MYVAR
do:re:mi
I know that doesn't answer your actual question, but maybe it's useful
as a workaround.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author