[2832] in Athena Bugs

home help back first fref pref prev next nref lref last post

6.3B login

daemon@ATHENA.MIT.EDU (probe@ATHENA.MIT.EDU)
Sat Aug 12 00:28:52 1989

From: <probe@ATHENA.MIT.EDU>
Date: Sat, 12 Aug 89 00:28:29 -0400
To: bugs@ATHENA.MIT.EDU
Reply-To: Richard Basch   <probe@ATHENA.MIT.EDU>

My home-directory is now AFS...  This means that my home directory is
actually a symbolic link to AFS land.  This means that /mit/probe is no
longer a directory... it is a symlink.  It also means that the pathname
to my homedirectory is very long and when I have the path printed out in
my prompt, it is very large.  A feature was added to "tcsh" to allow
globbing of this so that pathnames if they are based on a subdirectory
of my home-directory will appear as ~/directory...  Unfortunately, it
bases the home directory on the $home variable, not the
fully-qualified-pathname for the home-directory.

In essence:

	home=/mit/probe
	real directory=/afs/athena.mit.edu/user/u/probe

So when I have a pathname in my prompt it appears like:

	<cronos!probe>  {/afs/athena.mit.edu/user/p/probe}
	2%

This is huge and if I were a user, I would prefer to see it relative to
something I understand rather than the above gibberish.  Something like:

	<cronos!probe>  {~/Mail}
	9% cd
	<cronos!probe>  {~}
	10%

would be much easier for a user to understand.  I have a one line hack
in my .cshrc.mine that can easily be done in the global one...

	set home=`cd;/bin/pwd`

This can easily be done during the environment setup as I don't believe
this has to be done on every invocation of the shell...

-Richard

home help back first fref pref prev next nref lref last post