Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with Named Dirs & GNU Screen
- X-seq: zsh-users 7487
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Aaron Davies <agdavi01@xxxxxxxxxxxxxx>
- Subject: Re: Problem with Named Dirs & GNU Screen
- Date: Sat, 5 Jun 2004 14:39:11 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <D2F87398-B726-11D8-A6AC-000502631FBD@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <D2F87398-B726-11D8-A6AC-000502631FBD@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author