From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6272 invoked from network); 5 Jun 2004 19:39:54 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 5 Jun 2004 19:39:54 -0000 Received: (qmail 29596 invoked from network); 5 Jun 2004 19:39:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Jun 2004 19:39:31 -0000 Received: (qmail 18288 invoked by alias); 5 Jun 2004 19:39:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7487 Received: (qmail 18279 invoked from network); 5 Jun 2004 19:39:19 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 5 Jun 2004 19:39:16 -0000 Received: (qmail 28899 invoked from network); 5 Jun 2004 19:39:16 -0000 Received: from dan.emsphone.com (root@199.67.51.101) by a.mx.sunsite.dk with SMTP; 5 Jun 2004 19:39:14 -0000 Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i55JdB9Y056152; Sat, 5 Jun 2004 14:39:11 -0500 (CDT) (envelope-from dan) Date: Sat, 5 Jun 2004 14:39:11 -0500 From: Dan Nelson To: Aaron Davies Cc: zsh-users@sunsite.dk Subject: Re: Problem with Named Dirs & GNU Screen Message-ID: <20040605193910.GD42830@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 In the last episode (Jun 05), Aaron Davies said: > I've been trying to figure out the named dirs issue I wrote about > several weeks ago, but I'm still having problems. The situation is > this: I would like to create a named dir "palmfiles" expanding to > "~/Documents/Palm/Users/Aaron Davies/Files to Install". To this end, I > have in my .zprofile the following line: > > export palmfiles=~/Documents/Palm/Users/Aaron\ Davies/Files\ to\ Install > > and in my .zshrc: > > setopt AUTO_NAME_DIRS Try putting that setopt in .zprofile, _above_ your variable definition, or move the variable definition into .zshrc. The execution order of startup scripts is: .zshenv .zprofile .zshrc .zlogin So AUTO_NAME_DIRS isn't yet set when the variable is first set. You could also run hash -d palmfiles=~/Documents/Palm/Users/Aaron\ Davies/Files\ to\ Install which will create a named directory without the matching shell variable (if that's what you want). -- Dan Nelson dnelson@allantgroup.com