Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: howto avoid ~irc in %~ ?
- X-seq: zsh-users 5083
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: howto avoid ~irc in %~ ?
- Date: Fri, 21 Jun 2002 18:40:06 -0500
- In-reply-to: <20020621231150.GA59715@xxxxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Radio Marañón, Peru
- References: <1020615232225.ZM2169@xxxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.44.0206170009100.18681-100000@xxxxxxxxxxxxxxxx> <20020621175139.A16301@xxxxxxxxxxxxxxxxxxx> <20020621231150.GA59715@xxxxxxxxxxxxxxxx>
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