<?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>langui.sh &#187; terminal</title>
	<atom:link href="http://langui.sh/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://langui.sh</link>
	<description>Fun hacks, WP plugins, photography, and PKI junk.  Languishing since 2008.</description>
	<lastBuildDate>Tue, 17 Jan 2012 20:23:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>More Useful Bash/Terminal Settings</title>
		<link>http://langui.sh/2009/11/02/more-useful-bashterminal-settings/</link>
		<comments>http://langui.sh/2009/11/02/more-useful-bashterminal-settings/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:28:20 +0000</pubDate>
		<dc:creator>Paul Kehrer</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://langui.sh/?p=751</guid>
		<description><![CDATA[<a href="http://langui.sh/2009/11/02/more-useful-bashterminal-settings/" title="More Useful Bash/Terminal Settings"></a>A few more tricks to make your bash environment better. As always, add them to your ~/.profile or ~/.bash_profile to enable. Disable the pagination of long lists when ambiguously tab completing. bind 'set page-completions off' Increase max returned items before &#8230;<p class="read-more"><a href="http://langui.sh/2009/11/02/more-useful-bashterminal-settings/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://langui.sh/2009/11/02/more-useful-bashterminal-settings/" title="More Useful Bash/Terminal Settings"></a><p>A few more tricks to make your bash environment better.  As always, add them to your ~/.profile or ~/.bash_profile to enable.</p>
<p>Disable the pagination of long lists when ambiguously tab completing.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'set page-completions off'</span></pre></div></div>

<p>Increase max returned items before being prompted.  (ie, &#8220;Display all 380 possibilities? (y or n&#8221;).  You can set the number to whatever you&#8217;d like.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'set completion-query-items 300'</span></pre></div></div>

<p>Show the list of autocompletion options after the first tab.  This prevents the beep + second tab behavior.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'set show-all-if-ambiguous on'</span></pre></div></div>

<p>When autocompleting for cd or rmdir, list only directories as choices.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">complete</span> <span style="color: #660033;">-d</span> <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #c20cb9; font-weight: bold;">rmdir</span></pre></div></div>

<p>Autocompletion for ssh known_hosts.  Add this to your ~/.ssh/config (if the file doesn&#8217;t exist, create it)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Host <span style="color: #000000; font-weight: bold;">*</span>
HashKnownHosts no</pre></div></div>

<p>Make grep highlight the matching terms in its output.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GREP_OPTIONS</span>=<span style="color: #ff0000;">'--color=auto'</span></pre></div></div>

<p>Ignore case for case preserving but insensitive filesystems (like HFS+).  I don&#8217;t personally use this, but perhaps some people will like it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'set completion-ignore-case on'</span></pre></div></div>

<p>Don&#8217;t show hidden files when listing.  Another option I don&#8217;t personally use.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'set match-hidden-files off'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://langui.sh/2009/11/02/more-useful-bashterminal-settings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Delete Sends Ctrl-H</title>
		<link>http://langui.sh/2009/03/30/delete-sends-ctrl-h/</link>
		<comments>http://langui.sh/2009/03/30/delete-sends-ctrl-h/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 05:01:12 +0000</pubDate>
		<dc:creator>Paul Kehrer</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://langui.sh/?p=463</guid>
		<description><![CDATA[<a href="http://langui.sh/2009/03/30/delete-sends-ctrl-h/" title="Delete Sends Ctrl-H"></a>If you&#8217;re a Mac user who utilizes Terminal.app with any regularity you have probably run into some Linux servers where the Mac Delete key behaves as forward delete instead of backspace (Ubuntu, Debian, and a few other distributions have this &#8230;<p class="read-more"><a href="http://langui.sh/2009/03/30/delete-sends-ctrl-h/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://langui.sh/2009/03/30/delete-sends-ctrl-h/" title="Delete Sends Ctrl-H"></a><p><a href="http://cdn.langui.sh/2009/03/picture-1.png"><img class="alignright size-medium wp-image-464" title="Delete Sends Ctrl-H in Terminal" src="http://cdn.langui.sh/2009/03/picture-1-300x239.png" alt="Delete Sends Ctrl-H in Terminal" width="300" height="239" /></a>If you&#8217;re a Mac user who utilizes Terminal.app with any regularity you have probably run into some Linux servers where the Mac Delete key behaves as forward delete instead of backspace (Ubuntu, Debian, and a few other distributions have this issue).  This is a really obnoxious problem, but fortunately there is an easy global fix.</p>
<p>To repair the problem you&#8217;ll need to go to the Terminal.app preferences, select settings, then under the default theme you&#8217;re using click the advanced tab.  Now you can check the &#8220;Delete Sends Ctrl-H&#8221; option and close the prefs.  Any existing windows will retain the old behavior but new tabs/windows will now behave as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://langui.sh/2009/03/30/delete-sends-ctrl-h/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 7/22 queries in 0.007 seconds using memcached
Object Caching 513/534 objects using memcached

Served from: langui.sh @ 2012-02-07 06:37:04 -->
