Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: problem with named directories over the net



On Jan 11,  3:28pm, Dominik Vogt wrote:
} Subject: Re: problem with named directories over the net
}
} > PS1="%~ %# "
} 
} No, I already have that im my prompt.  The problem is that only
} "/home/luthien" is written as "~",
} not "/net/server/share/home/luthien".

My "stupid zsh tricks" entry for the month:

    hash -d /=/net/server/share/home/luthien

This causes zsh to write /net/server/share/home/luthien as tilde-slash,
which is pretty nearly indistinguishable from tilde.  It means that
sub-directories of your home directory will sometimes be displayed as
~//subdir, but maybe you can live with that.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author