<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Netflow Developments &#187; autocomplete</title>
	<atom:link href="http://blog.netflowdevelopments.com/tag/autocomplete/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netflowdevelopments.com</link>
	<description>The latest and greatest happenings in the world of Science, Technology and everything else Geek</description>
	<lastBuildDate>Fri, 10 Feb 2012 09:22:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Enabling Autocomplete by reverse searching history in Linux</title>
		<link>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/</link>
		<comments>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 11:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / Freebsd]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[complete]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[reverse search]]></category>
		<category><![CDATA[up arrow]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/?p=428</guid>
		<description><![CDATA[Being a FreeBSD user I just got used to a very nice feature that would allow me to autocomplete commands based on my history.  So for example if 15 commands ago I had typed &#8216;cat filenames1 &#62; filename2&#8242; and I wanted to retype that command I could just type &#8216;cat&#8217; and then press up and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="linux" src="http://www.open-of-course.org/courses/file.php/24/linux-logo-full.jpg" alt="" width="196" height="216" />Being a FreeBSD user I just got used to a very nice feature that would allow me to autocomplete commands based on my history.  So for example if 15 commands ago I had typed &#8216;cat filenames1 &gt; filename2&#8242; and I wanted to retype that command I could just type &#8216;cat&#8217; and then press up and it would go through my history and bring up the last command I typed starting with &#8216;cat&#8217; until I got back to the desired command, only bringing up those in my history starting with &#8216;cat&#8217; of course.</p>
<p>Unfortunately this isn&#8217;t the way it works in linux, in linux pressing up, no matter how much you&#8217;ve typed so far will just take you back through the command history.  Sure you can press ctrl-r but I couldn&#8217;t be bothered to figure that out.  Besides there is a much cooler way to go about it.</p>
<p>what you  do is to edit /etc/inputrc:<br />
vi gedit /etc/inputrc</p>
<p>somewhere around line 40 is the following:</p>
<p># alternate mappings for &#8220;page up&#8221; and &#8220;page down&#8221; to search the history<br />
#&#8221;\e[5~&#8221;: history-search-backward<br />
#&#8221;\e[6~&#8221;: history-search-forward<br />
Uncomment those lines, close term and open an new one and viola!  It works the same but with page up and down instead.  Beauty!  If you didn&#8217;t know about this at all go in there and turn it on right now because man this is a time saver and a half.  You&#8217;ll thank me later!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

