<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.geitenpad.rijkenmiel.nl/index.php?action=history&amp;feed=atom&amp;title=Unlimited_history</id>
	<title>Unlimited history - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.geitenpad.rijkenmiel.nl/index.php?action=history&amp;feed=atom&amp;title=Unlimited_history"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.geitenpad.rijkenmiel.nl/index.php?title=Unlimited_history&amp;action=history"/>
	<updated>2026-09-12T03:24:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://mediawiki.geitenpad.rijkenmiel.nl/index.php?title=Unlimited_history&amp;diff=135&amp;oldid=prev</id>
		<title>Rijk: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.geitenpad.rijkenmiel.nl/index.php?title=Unlimited_history&amp;diff=135&amp;oldid=prev"/>
		<updated>2025-01-05T14:34:04Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:34, 5 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Rijk</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.geitenpad.rijkenmiel.nl/index.php?title=Unlimited_history&amp;diff=134&amp;oldid=prev</id>
		<title>Rijk at 06:33, 14 May 2019</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.geitenpad.rijkenmiel.nl/index.php?title=Unlimited_history&amp;diff=134&amp;oldid=prev"/>
		<updated>2019-05-14T06:33:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;After many large, ugly iterations and weird edge cases over the years, I now have a concise section of my .bashrc dedicated to this.&lt;br /&gt;
&lt;br /&gt;
First, you must comment out or remove this section of your .bashrc (default for Ubuntu). If you don&amp;#039;t, then certain environments (like running screen sessions) will still truncate your history:&lt;br /&gt;
&lt;br /&gt;
 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)&lt;br /&gt;
 # HISTSIZE=1000&lt;br /&gt;
 # HISTFILESIZE=2000&lt;br /&gt;
&lt;br /&gt;
Second, add this to the bottom of your .bashrc:&lt;br /&gt;
&lt;br /&gt;
 # Eternal bash history.&lt;br /&gt;
 # ---------------------&lt;br /&gt;
 # Undocumented feature which sets the size to &amp;quot;unlimited&amp;quot;.&lt;br /&gt;
 # https://stackoverflow.com/questions/9457233/unlimited-bash-history&lt;br /&gt;
 export HISTFILESIZE=&lt;br /&gt;
 export HISTSIZE=&lt;br /&gt;
 export HISTTIMEFORMAT=&amp;quot;[%F %T] &amp;quot;&lt;br /&gt;
 # Change the file location because certain bash sessions truncate .bash_history file upon close.&lt;br /&gt;
 # http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login&lt;br /&gt;
 export HISTFILE=~/.bash_eternal_history&lt;br /&gt;
 # Force prompt to write history after every command.&lt;br /&gt;
 # http://superuser.com/questions/20900/bash-history-loss&lt;br /&gt;
 PROMPT_COMMAND=&amp;quot;history -a; $PROMPT_COMMAND&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: every command is written immediately after it&amp;#039;s run, so if you accidentally paste a password you cannot just &amp;quot;kill -9 %%&amp;quot; to avoid the history write, you&amp;#039;ll need to remove it manually.&lt;br /&gt;
&lt;br /&gt;
Also note that each bash session will load the full history file in memory, but even if your history file grows to 10MB (which will take a long, long time) you won&amp;#039;t notice much of an effect on your bash startup time.&lt;br /&gt;
&lt;br /&gt;
https://superuser.com/questions/137438/how-to-unlimited-bash-shell-history&lt;/div&gt;</summary>
		<author><name>Rijk</name></author>
	</entry>
</feed>