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

Re: howto avoid ~irc in %~ ?



Oops, I reacted too fast :-)

> chpwd() { unhash -d irc }
This works great, if irc still is in the hash, but throws:
  unhash: no such hash table element: irc
after every directory change if it isn't.

Hm, how would I test if it is in the hash before removing it?
 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
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 When I shop for hardware I always look for the "Designed for Windows"
 logo.  I really thank Microsoft(TM) for encouraging manufacturers to
 label their products this way, so I know what to AVOID.



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