Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Problem with Named Dirs & GNU Screen

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:

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

Messages sorted by: Reverse Date, Date, Thread, Author