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

howto avoid ~irc in %~ ?



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