* Named Dirs Not Registered for Completion Until Used
@ 2004-05-01 17:43 Aaron Davies
2004-05-01 21:37 ` Bart Schaefer
2004-05-02 20:01 ` Peter Stephenson
0 siblings, 2 replies; 4+ messages in thread
From: Aaron Davies @ 2004-05-01 17:43 UTC (permalink / raw)
To: zsh-users
I'm trying to create a named dir ~palmfiles for my Palm installation
directory, and I have the following line in my .zprofile:
export palmfiles=~/Documents/Palm/Users/Aaron\ Davies/Files\ to\ Install
When I start a new shell, I can say
cd ~palmfiles
and it will work, but what I *can't* do initially is
cd ~pa<tab>
It just beeps. After I've done
cd ~palmfiles
the tab completion works.
In order to remedy this, I've added the following line to .zprofile:
hash -d palmfiles=~/Documents/Palm/Users/Aaron\ Davies/Files\ to\
Install
but according to the zsh docs, I shouldn't have to do this. What do I
need to do to make a named directory available for completion (=?
present in hash table) immediately after shell startup?
--
__ __
/ ) / )
/--/ __. __ ________ / / __. , __o _ _
/ (_(_/|_/ (_(_) / / <_ /__/_(_/|_\/ <__</_/_)_
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Named Dirs Not Registered for Completion Until Used
2004-05-01 17:43 Named Dirs Not Registered for Completion Until Used Aaron Davies
@ 2004-05-01 21:37 ` Bart Schaefer
2004-05-02 20:01 ` Peter Stephenson
1 sibling, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2004-05-01 21:37 UTC (permalink / raw)
To: zsh-users
On May 1, 1:43pm, Aaron Davies wrote:
}
} hash -d palmfiles=~/Documents/Palm/Users/Aaron\ Davies/Files\ to\ Install
}
} but according to the zsh docs, I shouldn't have to do this.
Can you give the citation from the docs that says so?
I think you may be misunderstanding the doc, but it could be that the doc
is wrong. What you should be able to do is
zsh% cd ~palmfiles/<TAB>
and see a listing of the subdirs in that directory, without first having
to have used ~palmfiles. But completing the parameter name of the named
directory without first using it has not to my knowledge ever worked,
unless you "setopt autonamedirs" so that the named directory springs into
existence as soon as you assign to it.
(I don't know whether that works with exported variables when imported
by new shells, though.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Named Dirs Not Registered for Completion Until Used
2004-05-01 17:43 Named Dirs Not Registered for Completion Until Used Aaron Davies
2004-05-01 21:37 ` Bart Schaefer
@ 2004-05-02 20:01 ` Peter Stephenson
2004-05-03 4:45 ` Aaron Davies
1 sibling, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2004-05-02 20:01 UTC (permalink / raw)
To: Aaron Davies; +Cc: zsh-users
Aaron Davies wrote:
> When I start a new shell, I can say
>
> cd ~palmfiles
>
> and it will work, but what I *can't* do initially is
>
> cd ~pa<tab>
>
> It just beeps.
Put
: ~palmfiles
somewhere after the definition of palmfiles in .zprofile.
--
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Named Dirs Not Registered for Completion Until Used
2004-05-02 20:01 ` Peter Stephenson
@ 2004-05-03 4:45 ` Aaron Davies
0 siblings, 0 replies; 4+ messages in thread
From: Aaron Davies @ 2004-05-03 4:45 UTC (permalink / raw)
To: zsh-users
On Sunday, May 2, 2004, at 04:01 PM, Peter Stephenson wrote:
> Aaron Davies wrote:
>
>> When I start a new shell, I can say
>>
>> cd ~palmfiles
>>
>> and it will work, but what I *can't* do initially is
>>
>> cd ~pa<tab>
>>
>> It just beeps.
>
> Put
>
> : ~palmfiles
>
> somewhere after the definition of palmfiles in .zprofile.
Thanks that seems to do it.
--
__ __
/ ) / )
/--/ __. __ ________ / / __. , __o _ _
/ (_(_/|_/ (_(_) / / <_ /__/_(_/|_\/ <__</_/_)_
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-05-03 4:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-01 17:43 Named Dirs Not Registered for Completion Until Used Aaron Davies
2004-05-01 21:37 ` Bart Schaefer
2004-05-02 20:01 ` Peter Stephenson
2004-05-03 4:45 ` Aaron Davies
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).