Mail Archives: djgpp/1998/07/06/12:31:50
On Mon, 6 Jul 1998, Jeff Williams wrote:
> Since I work almost exclusively under bash, the command history doesn't
> get saved at all unless I remember to exit bash before shutting down.
> Is there a way to have my command history regularly witten to the
> ~/_history file from within bash?
According to the Bash manual (hint, hint ;-), the command "history -a"
will append the current history to the history file; "history -w" will
overwrite it.
It should be fairly simple to arrange this command to be issued during
logout in your _bash_logout or some such file.
- Raw text -