<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Far from ha^</title>
	<atom:link href="http://mikeherrera.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikeherrera.wordpress.com</link>
	<description>Erratic musings inspired from a stready diet of music and programming.</description>
	<lastBuildDate>Sun, 04 Apr 2010 21:51:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mikeherrera.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Far from ha^</title>
		<link>http://mikeherrera.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mikeherrera.wordpress.com/osd.xml" title="Far from ha^" />
	<atom:link rel='hub' href='http://mikeherrera.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Tab completion has no .class</title>
		<link>http://mikeherrera.wordpress.com/2009/11/01/tab-completion-has-no-class/</link>
		<comments>http://mikeherrera.wordpress.com/2009/11/01/tab-completion-has-no-class/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 09:21:04 +0000</pubDate>
		<dc:creator>mikeherrera</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[QuickAndDirty]]></category>

		<guid isPermaLink="false">http://mikeherrera.wordpress.com/?p=29</guid>
		<description><![CDATA[&#8230;just as a goatee-laden nu-metal steadfast will never concede to how lame, white-boy angst killed the late-90&#8242;s. In full disclosure, tab-completion and I have quite a history.  It therefore pains me to call-out this shell feature. Out-of-the-box, Ubuntu is configured to not anoint vim or vi with the ability to tab-complete .class file names from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeherrera.wordpress.com&amp;blog=4900920&amp;post=29&amp;subd=mikeherrera&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230;just as a goatee-laden nu-metal steadfast will never concede to how lame, white-boy angst killed the late-90&#8242;s.</p>
<p>In full disclosure, tab-completion and I have quite a history.  It therefore pains me to call-out this shell feature.</p>
<p>Out-of-the-box, Ubuntu is configured to not anoint <em><strong>vim</strong></em> or<em> <strong>vi</strong></em> with the ability to tab-complete .class file names from bash.</p>
<p><em><strong>e.g.</strong></em> If there existed a file, foo.class</p>
<pre style="padding-left:30px;"><strong>mike@ubuntu:~$</strong> ls
foo.class
<strong>mike@ubuntu:~$
</strong></pre>
<p>Attempting to tab-complete the following will only ring that joyful bell</p>
<pre style="padding-left:30px;"><strong>mike@ubuntu:~$</strong> vim foo.   &lt;--tabbing with fervor! FFFFFUUUUUU!</pre>
<p>Now don&#8217;t get me wrong, I&#8217;m capable of hitting the extra four keystrokes, but I&#8217;m also lazy.</p>
<p>It took a few searches to realize that there existed tab-completion config.  <em>And for the record AND hilarity, yes, this took me more time than just typing the extra characters.</em></p>
<p>The solution is the following:</p>
<ul>
<li>Open /etc/bash_completion</li>
</ul>
<ul>
<li>Search for your offending file extension.</li>
</ul>
<p><em>&#8230;and in my instance, it appeared as:</em></p>
<pre style="padding-left:30px;">complete -f -X '*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|
mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' vi vim gvim rvim view
rview rgvim rgview gview</pre>
<ul>
<li>Replacing the line with:</li>
</ul>
<pre style="padding-left:30px;">complete -f -X '*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|
mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' gvim rvim view rview
rgvim rgview gview</pre>
<p>&#8230;and a quick bash session restart, .class files were once again being massacred by my intentions.</p>
<p>FIN!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikeherrera.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikeherrera.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikeherrera.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikeherrera.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikeherrera.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikeherrera.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikeherrera.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikeherrera.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikeherrera.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikeherrera.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikeherrera.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikeherrera.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikeherrera.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikeherrera.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeherrera.wordpress.com&amp;blog=4900920&amp;post=29&amp;subd=mikeherrera&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikeherrera.wordpress.com/2009/11/01/tab-completion-has-no-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/93ae946b112e25b123417b0392e739e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikeherrera</media:title>
		</media:content>
	</item>
		<item>
		<title>HelloWorld()</title>
		<link>http://mikeherrera.wordpress.com/2008/10/16/helloworld/</link>
		<comments>http://mikeherrera.wordpress.com/2008/10/16/helloworld/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 21:13:38 +0000</pubDate>
		<dc:creator>mikeherrera</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://mikeherrera.wordpress.com/?p=6</guid>
		<description><![CDATA[Hi, my name is Mike Herrera, and I&#8217;m a professional lurker.  For years I&#8217;ve consumed what others have decided to publish; without feeling any guilt of not reciprocating the favor.  So please, raise your glasses with me to toast the&#8230; Wait, you mean this is a &#8220;dry&#8221; meeting?!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeherrera.wordpress.com&amp;blog=4900920&amp;post=6&amp;subd=mikeherrera&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi, my name is Mike Herrera, and I&#8217;m a professional lurker.  For years I&#8217;ve consumed what others have decided to publish; without feeling any guilt of not reciprocating the favor.  So please, raise your glasses with me to toast the&#8230;</p>
<p>Wait, you mean this is a &#8220;dry&#8221; meeting?!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikeherrera.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikeherrera.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikeherrera.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikeherrera.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikeherrera.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikeherrera.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikeherrera.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikeherrera.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikeherrera.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikeherrera.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikeherrera.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikeherrera.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikeherrera.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikeherrera.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mikeherrera.wordpress.com&amp;blog=4900920&amp;post=6&amp;subd=mikeherrera&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mikeherrera.wordpress.com/2008/10/16/helloworld/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/93ae946b112e25b123417b0392e739e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikeherrera</media:title>
		</media:content>
	</item>
	</channel>
</rss>
