Re: sync write to .bash_history file?

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

 



On 2 April 2010 22:35, Gianluca Cecchi <gianluca.cecchi@xxxxxxxxx> wrote:
> I see that in Linux, on Fedora, but in general with some flavours and
> distros, it seems that write operations to the .bash_history are not
> "consistent", in the sense that sometimes you will not find all the commands
> in it..... and sometimes they are not aligned (a sort of .swp file effect
> like in vim...?)
> Is there a particular reason?

By default, history is written to the file at the end of the session.

> Is there a possible configuration giving a consistent and synchronous fill
> of this file? Eventually eliminating cache things if this could be the
> cause...

export PROMPT_COMMAND='history -a'

--
Sam
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux