Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: howto avoid ~irc in %~ ?
- X-seq: zsh-users 5084
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: howto avoid ~irc in %~ ?
- Date: Fri, 21 Jun 2002 18:53:06 -0500
- In-reply-to: <20020621184005.A23074@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1020615232225.ZM2169@xxxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.44.0206170009100.18681-100000@xxxxxxxxxxxxxxxx> <20020621175139.A16301@xxxxxxxxxxxxxxxxxxx> <20020621231150.GA59715@xxxxxxxxxxxxxxxx> <20020621184005.A23074@xxxxxxxxxxxxxxxxxxx>
In the last episode (Jun 21), Andy Spiegl said:
> 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?
chpwd() { unhash -d irc 2>& /dev/null }
masks it; that's probably as good as you can get.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author