On 2 April 2010 22:35, Gianluca Cecchi <gianluca.cec...@gmail.com> 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@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to