From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17145 invoked from network); 11 Mar 2005 18:37:55 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Mar 2005 18:37:55 -0000 Received: (qmail 31169 invoked from network); 11 Mar 2005 18:37:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 18:37:42 -0000 Received: (qmail 27516 invoked by alias); 11 Mar 2005 18:37:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8584 Received: (qmail 27501 invoked from network); 11 Mar 2005 18:37:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Mar 2005 18:37:32 -0000 Received: (qmail 30184 invoked from network); 11 Mar 2005 18:37:32 -0000 Received: from bc029.b.pppool.de (HELO solfire) (213.7.192.41) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 18:37:22 -0000 Received: from [127.0.0.1] (helo=localhost) by solfire with esmtp (Exim 4.42) id 1D9p0w-00032o-JS; Fri, 11 Mar 2005 19:37:36 +0100 Date: Fri, 11 Mar 2005 19:37:34 +0100 (CET) Message-Id: <20050311.193734.78721293.Meino.Cramer@gmx.de> To: schaefer@brasslantern.com Cc: zsh-users@sunsite.dk From: Meino Christian Cramer In-Reply-To: <1050311051417.ZM9377@candle.brasslantern.com> References: <20050310.194249.41192134.Meino.Cramer@gmx.de> <1050311051417.ZM9377@candle.brasslantern.com> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Rcpt-To: schaefer@brasslantern.com, zsh-users@sunsite.dk X-SA-Exim-Mail-From: Meino.Cramer@gmx.de Subject: TAB-expansion problems Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.1+cvs (built Sat, 28 Aug 2004 13:10:40 +0200) X-SA-Exim-Scanned: Yes (on solfire) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-0.6 required=6.0 tests=AWL,BAYES_00,LONGWORDS, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_WEB autolearn=no version=3.0.2 X-Spam-Hits: -0.6 From: Bart Schaefer Subject: Re: Ex-bash script for optimisation Date: Fri, 11 Mar 2005 05:14:17 +0000 Hi, > On Mar 10, 7:42pm, Meino Christian Cramer wrote: > } Subject: Re: Ex-bash script for optimisation > > Please start a new message with a new subject if you're asking a new > question, rather than replying to an unrelated discussion re-using a > misleading subject. Thank you. Oh, damn! Sorry...my fault... > } I want to limit the expand function (that one called when pressing > } TAB after entering for example "cd") > > It's important to know whether you really mean "expansion" or whether > (as I suspect) you're asking about "completion". As a zsh-newbie I better describe what happens and what I want to switch off. Suppose I am at my $HOME/tmp/. directory. Furthermore there is only ONE additional directory called "TheLonelyOne" there. And I want to to change into that directory. As a lazy person now I would type on the commandline cd and want to get cd TheLonelyOne then instead all worldwide reachable directories as a suggestion. From my current point of knowledge I didn't neither know the correct naming for that behaviour (otherwise I may have already found the solution in the docs...) nor whether there are similiar conditions with possible other commands, which lead to such "I suggest you now everything worldwide possible"-behaviour of zsh (this by far no complainment against zsh or any critism !!! :) Or with lesser words: If I would have a name of my problem I may not have that problem anymore... ;) My compinit-related stuff (as far as I am able to identfy it...) is: (from $HOME/.zshrc) # Search path for the cd command cdpath=(.. ~ ~/src ~/zsh) setopt notify globdots nocorrect pushdtohome cdablevars autolist setopt autocd recexact longlistjobs setopt autoresume histignoredups pushdsilent noclobber setopt autopushd pushdminus extendedglob rcquotes mailwarning unsetopt bgnice autoparamslash setopt nobeep multios monitor ### completion stuff zstyle ':completion:*' verbose yes zstyle ':completion:*:descriptions' format '%B%d%b' zstyle ':completion:*:messages' format '%d' zstyle ':completion:*:warnings' format 'No matches for: %d' zstyle ':completion:*' group-name '' # ---------------------------------------------------------------------- xhost local:root 2>&1 > /dev/null # The following lines were added by compinstall zstyle :compinstall filename '/home/mccramer/.zshrc' autoload -Uz compinit compinit # End of lines added by compinstall > "Expansion" means you have something like a glob pattern, for example > a*e, and you want the shell to replace it with file names that match > the pattern, for example ankle apple argue. In general, expansion is > not context-sensitive. > > "Completion" means you've typed part of a word -- usually a prefix -- > and you want the shell to supply the rest of the word in a way that > fits the context where the word appears. For example, directory names > in the arguments of cd. > > } to file of the current working directory or in other words I want to > } switch off the global search for expansion possibilities... > > This question is a bit mystifying because there normally is no "global > search." One possibility is that you need to "unset cdpath", but it > would help if you explained more about (1) whether you use "compinit" > to set up completion or are using the built-in defaults, and (2) what > happens when you press TAB that makes you think a "global" search is > being done. >