<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Bash History</title>
	<atom:link href="http://plathrop.tertiusfamily.net/blog/2008/03/12/bash-history/feed/" rel="self" type="application/rss+xml" />
	<link>http://plathrop.tertiusfamily.net/blog/2008/03/12/bash-history/</link>
	<description>Paul Lathrop discusses systems administration.</description>
	<pubDate>Thu, 20 Nov 2008 12:48:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Mashmore</title>
		<link>http://plathrop.tertiusfamily.net/blog/2008/03/12/bash-history/#comment-649</link>
		<dc:creator>Mashmore</dc:creator>
		<pubDate>Fri, 10 Oct 2008 19:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://plathrop.tertiusfamily.net/blog/2008/03/12/bash-history/#comment-649</guid>
		<description>My favorite bash history recipe (in .bash_profile, .bashrc, wherever ...):
 
# remove duplicate entries from history ...
export HISTCONTROL=erasedups

# keep a good size backlog ...
export HISTSIZE=10000

# bind up and down arrow keys
bind '"\e[A"':history-search-backward
bind '"\e[B"':history-search-forward

# append history to .bash_history on shell exit, rather than overwriting
shopt -s histappend

With this, you can type the first few characters of anything in your history, then use the up and down arrow keys to search for the appropriate entry. Sweet!</description>
		<content:encoded><![CDATA[<p>My favorite bash history recipe (in .bash_profile, .bashrc, wherever &#8230;):</p>
<p># remove duplicate entries from history &#8230;<br />
export HISTCONTROL=erasedups</p>
<p># keep a good size backlog &#8230;<br />
export HISTSIZE=10000</p>
<p># bind up and down arrow keys<br />
bind &#8216;&#8221;\e[A&#8221;&#8216;:history-search-backward<br />
bind &#8216;&#8221;\e[B&#8221;&#8216;:history-search-forward</p>
<p># append history to .bash_history on shell exit, rather than overwriting<br />
shopt -s histappend</p>
<p>With this, you can type the first few characters of anything in your history, then use the up and down arrow keys to search for the appropriate entry. Sweet!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
