Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Named Dirs Not Registered for Completion Until Used
- X-seq: zsh-users 7425
- From: Aaron Davies <agdavi01@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Named Dirs Not Registered for Completion Until Used
- Date: Sat, 1 May 2004 13:43:41 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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 _ _
/ (_(_/|_/ (_(_) / / <_ /__/_(_/|_\/ <__</_/_)_
Messages sorted by:
Reverse Date,
Date,
Thread,
Author