Re: .bash_history in F15/16 randomly truncated/incomplete/damaged

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

 



On 03/28/2012 09:51 AM, Reindl Harald wrote:
usually bash writes down .bash_history on close
try it out with "cat ~/.bash_history" and you will
not see the entries of your current session!

so if you have more than one bash-instance open
all of them writing down their history and the
last one wins

That behavior has always annoyed me, since I always seem to be missing useful parts of my history. Recently, someone suggested I add the following to my .bash_profile:

export HISTSIZE=5000
shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"

First, it increases my history size, and second, it appends the current shell's history to the file, not overwrites it, and third, it updates the history file with each command that is entered.

I am much happier now.

Woogie
--
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
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux