zsh-users
 help / color / mirror / code / Atom feed
* problem with named directories over the net
@ 2002-01-11 12:41 Dominik Vogt
  2002-01-11 12:55 ` Borsenkow Andrej
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Dominik Vogt @ 2002-01-11 12:41 UTC (permalink / raw)
  To: zsh-users

I like to shorten my prompt by using '~' instead of the full path
to my home directory.  For example:

  / $ cd ~/bin
  ~/bin $

Now the problem occurs when I fire up mc.  Upon leaving mc, a
script from the mc documentation cds into the current path and I
get something like

  /net/server/share/home/luthien/bin $

as the prompt because this is where my home directory comes from.
/home is a symbolic link to /net/server/share/home.  Any idea how
I can prevent this?

The function I start mc with looks like this:

------------------------ snip --------------------
# midnight commander (change dir after exit)
mc ()
{
  local MC
  MC=/tmp/mc$$-"$RANDOM"
  if [ "$TERM" = xterm -o "$TERM" = rxvt ] ; then
    /usr/bin/mc -a -c -d -u -x -P "$@" > "$MC"
  else
    /usr/bin/mc -a -c -d -u -P "$@" > "$MC"
  fi
  cd `cat "$MC"`
  rm "$MC"
  unset MC;
}
------------------------ snip --------------------

Bye

Dominik ^_^  ^_^

-- 
Dominik Vogt, email: d.vogt@lifebits.de
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-01-15 17:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-11 12:41 problem with named directories over the net Dominik Vogt
2002-01-11 12:55 ` Borsenkow Andrej
2002-01-11 14:28   ` Dominik Vogt
2002-01-11 14:35     ` Borsenkow Andrej
2002-01-11 15:36       ` Dominik Vogt
2002-01-11 14:41     ` Zefram
2002-01-11 15:38       ` Bart Schaefer
2002-01-11 15:50     ` Bart Schaefer
2002-01-11 18:51       ` Dominik Vogt
2002-01-11 13:05 ` Peter Stephenson
2002-01-14 13:27 ` Duncan Sinclair
2002-01-14 16:40   ` Dominik Vogt
2002-01-14 18:11     ` Bart Schaefer
2002-01-15 10:53       ` Dominik Vogt
2002-01-15 17:59         ` Bart Schaefer

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).