<?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; ssh</title>
	<atom:link href="http://langui.sh/tag/ssh/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, 24 Aug 2010 17:40:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.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 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 being prompted. (ie, &#8220;Display all 380 possibilities? (y or n&#8221;). You can set the number [...]]]></description>
			<content:encoded><![CDATA[<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>
	</channel>
</rss>
