Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Remove history entries
- X-seq: zsh-workers 25863
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Remove history entries
- Date: Sun, 12 Oct 2008 21:22:52 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1223854509; i=@xxxxxxxxxxxx; bh=kuFYdXw2dMlcwSrrvxyJXewzCO/fgjqKS SXbTsGxSZw=; h=To:From:Subject:Date:Message-ID:Mime-Version: Content-Type:Content-Transfer-Encoding:Sender; b=jUyCOqoHGSOSB4qMR mw+ZIQXyKgjSeoh6nl+C0/iijmmP868LZd6X4CyJvDTDir2J/JxhgLwbDMQ8t5hM+G9 8g2sVikzI+U0dYMl7u8DdsNegyVNs1ZDO/aWqFtDmZF5q/6IoAUPySPhbgLkCguxJwc FghDfIQ+pBB9G6Ob4luw=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxx>
Hi,
is it possible to remove history entries? I would like to remove commands
didn't exist, i.e. their exit code is 127, in the precmd function. Is
this possible?
precmd()
{
if [[ $? -eq 127 ]]
then
history drop -1
fi
}
Bye, Jörg.
--
Was man mühelos erreichen kann, ist gewöhnlich nicht der Mühe wert,
erreicht zu werden.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author