From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23468 invoked from network); 13 Aug 2006 14:49:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Aug 2006 14:49:21 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 20176 invoked from network); 13 Aug 2006 14:49:12 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Aug 2006 14:49:12 -0000 Received: (qmail 23564 invoked by alias); 13 Aug 2006 14:49:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10595 Received: (qmail 23554 invoked from network); 13 Aug 2006 14:49:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Aug 2006 14:49:05 -0000 Received: (qmail 19120 invoked from network); 13 Aug 2006 14:49:05 -0000 Received: from nf-out-0910.google.com (64.233.182.188) by a.mx.sunsite.dk with SMTP; 13 Aug 2006 14:49:05 -0000 Received: by nf-out-0910.google.com with SMTP id y38so1507115nfb for ; Sun, 13 Aug 2006 07:49:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=OwYDy/r4yIxOgFEX/uNTotrEti9dxERMzYONki3M/c4Hb59F+EB9ChWdJFJ/BKRdpUL5otmsPp5O/UYydoEUTR3VnzhM2rj014d4QZXkdJTDvgFvY+lVJFqS/iD+zu4KftnNhfvd7DT3748inw8FCwMogXNgO8xZEb48xlTnRdY= Received: by 10.78.165.13 with SMTP id n13mr2920497hue; Sun, 13 Aug 2006 07:49:04 -0700 (PDT) Received: by 10.78.178.17 with HTTP; Sun, 13 Aug 2006 07:49:04 -0700 (PDT) Message-ID: Date: Sun, 13 Aug 2006 16:49:04 +0200 From: "Nikolai Weibull" Sender: nikolai.weibull@gmail.com To: "Peter Stephenson" Subject: Re: Completing a unique prefix of "script" completes "script" Cc: "Zsh Users' List" In-Reply-To: <200608102141.k7ALfw4J005496@pwslaptop.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200608102141.k7ALfw4J005496@pwslaptop.csr.com> X-Google-Sender-Auth: 04ba64beb90ec72b On 8/10/06, Peter Stephenson wrote: > "Nikolai Weibull" wrote: > > Is there a way to make sure that both options, i.e., "script/" and > > "script ", are completed? > You can cheat and unhash the command if you never use it. "unhash > script" did seem to do the trick. Note, however, that a "rehash" will > bring it back. It seems that the hash table is initialized after .zshrc is read. Is there a way to run some scripts after everything is initiaziled? I just stuck [[ -n $(whence script) ]] && unhash script in my .zshrc and figured that it'd work ($path being set in my .zprofile). That failing, I put a "rehash" before that line. I still get /home/now/.local/etc/zsh/.zshrc:unhash:36: no such hash table element: script What am I missing? And thanks for the very complete answer. Too bad none of the solutions seem to work very well. nikolai