From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17452 invoked from network); 29 Jan 2002 23:11:38 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 29 Jan 2002 23:11:38 -0000 Received: (qmail 28595 invoked by alias); 29 Jan 2002 23:11:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4640 Received: (qmail 28531 invoked from network); 29 Jan 2002 23:10:46 -0000 Message-ID: <3C572BEB.2030001@davh.dk> Date: Wed, 30 Jan 2002 00:10:35 +0100 From: Dennis Haney User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020124 X-Accept-Language: da, en-us MIME-Version: 1.0 To: Sven Wischnowsky CC: zsh-users@sunsite.dk Subject: Re: cd ..? References: <20020129102017.E3A633FC1B@pluto.sonofthor.dk> <15446.30464.872842.207355@wischnow.berkom.de> Content-Type: multipart/alternative; boundary="------------070001060203080404000206" --------------070001060203080404000206 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sven Wischnowsky wrote: >Bo Thorsen wrote: > >>Hi all, >> >>I'm just giving zsh yet another try, but my biggest beef with it is still >>there: >> >>>cd .. >>> >>doesn't expand to ../ which is quite annoying on a danish keyboard. Tab is >>easily hit but / is shift+7. Small issue, but when something's annoying, it >>only grows worse. >> >>I have searched the web and the manual without finding this. I expect there >>is some way of setting up completion to this, but I haven't figured it out >>yet. >> > >I assume you're using the new completion system, i.e., you call > > autoload -U compinit > compinit > >in any of the init files. > >Then you can just do: > > zstyle ':completion:*' special-dirs .. > >to make `..' be considered a possible match (and hence it will get the >slash appended). > Is there a way to make this work properly with setopt GLOB_DOTS? Such that .. is not tabcompleted once you have already entered a directory? -- Dennis use Inline C => qq{void p(char*g){printf("Just Another %s Hacker\n",g);}};p("Perl"); --------------070001060203080404000206 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Sven Wischnowsky wrote:
Bo Thorsen wrote:

Hi all,

I'm just giving zsh yet another try, but my biggest beef with it is still
there:

cd ..<tab>
doesn't expand to ../ which is quite annoying on a danish keyboard. Tab is 
easily hit but / is shift+7. Small issue, but when something's annoying, it
only grows worse.

I have searched the web and the manual without finding this. I expect there
is some way of setting up completion to this, but I haven't figured it out
yet.

I assume you're using the new completion system, i.e., you call

autoload -U compinit
compinit

in any of the init files.

Then you can just do:

zstyle ':completion:*' special-dirs ..

to make `..' be considered a possible match (and hence it will get the
slash appended).
Is there a way to make this work properly with setopt GLOB_DOTS?
Such that .. is not tabcompleted once you have already entered a directory?


-- 
Dennis
use Inline C => qq{void p(char*g){printf("Just Another %s Hacker\n",g);}};p("Perl");

--------------070001060203080404000206--