zsh-users
 help / color / mirror / code / Atom feed
From: Aaron Davies <agdavi01@louisville.edu>
To: zsh-users@sunsite.dk
Subject: Named Dirs Not Registered for Completion Until Used
Date: Sat, 1 May 2004 13:43:41 -0400	[thread overview]
Message-ID: <1595F0B2-9B97-11D8-B942-000502631FBD@louisville.edu> (raw)

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  _  _
  /  (_(_/|_/ (_(_) / / <_  /__/_(_/|_\/ <__</_/_)_


             reply	other threads:[~2004-05-01 17:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-01 17:43 Aaron Davies [this message]
2004-05-01 21:37 ` Bart Schaefer
2004-05-02 20:01 ` Peter Stephenson
2004-05-03  4:45   ` Aaron Davies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1595F0B2-9B97-11D8-B942-000502631FBD@louisville.edu \
    --to=agdavi01@louisville.edu \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).