Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
howto avoid ~irc in %~ ?
- X-seq: zsh-users 5054
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxxxxxx>
- Subject: howto avoid ~irc in %~ ?
- Date: Fri, 14 Jun 2002 13:16:46 -0500
- Kreccount: 1
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Radio Marañón, Peru
Hi,
I am afraid there is no good solution to this, but better ask:
I use %~ in my prompt, which is great, but in my /etc/passwd are some
strange home directories, like:
irc:x:39:39:ircd:/var:/bin/sh
So when I change to
/var/www
my prompt is:
machine:~irc/www>
Is there any way to tell zsh, to only use the ~... shortcut for home
directories in /home, or maybe for some specific users?
Thanks,
Andy.
--
http://peru.spiegl.de Our project
http://radiomaranon.org.pe Radio Marañón, Jaén, Perú
o _ _ _
------- __o __o /\_ _ \\o (_)\__/o (_) -o)
----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\
---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A chicken crossing the road is poultry in motion.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author