[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HISTCONTROL=erasedups

From: Bob Proulx
Subject: Re: HISTCONTROL=erasedups
Date: Wed, 9 May 2007 23:46:18 -0600
User-agent: Mutt/1.5.9i

Chet Ramey wrote:
> If you want to force the history file to be completely rewritten, you
> can use `history -w' at shell exit to rewrite it.  There is, unfortunately,
> currently no easy way to force the `rewrite-at-exit' behavior.

Could a shell trap be used to do this?

  trap 'history -w' EXIT

I did not test this however.  It is just a "brainstorm" idea.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]