<?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>A18制造 &#187; completion</title>
	<atom:link href="http://a18zhizao.com/ytag/completion/feed" rel="self" type="application/rss+xml" />
	<link>http://a18zhizao.com</link>
	<description>梦想的种子飞入了大地，所需要的只有时间。</description>
	<lastBuildDate>Tue, 24 Jan 2012 11:50:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>bash_completion install in Mac OS X Snow Leopard</title>
		<link>http://a18zhizao.com/y2010/1410_bash_completion-install-in-mac-os-x-snow-leopard.html</link>
		<comments>http://a18zhizao.com/y2010/1410_bash_completion-install-in-mac-os-x-snow-leopard.html#comments</comments>
		<pubDate>Wed, 05 May 2010 04:24:55 +0000</pubDate>
		<dc:creator>a18ccms</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[雪豹]]></category>

		<guid isPermaLink="false">http://a18zhizao.com/?p=1410</guid>
		<description><![CDATA[Recently，I Try to use the Snow Leopard ,But it lacks a feature. Debian-like bash_completion! I missed you! So I Seached with Google! To install it just do: Tip: You must have MacPorts installed to run the first command. MacPorts Form http://www.macports.org . If you don’t know yet what is bash_completion, it is  a feature for [...]]]></description>
			<content:encoded><![CDATA[<p>Recently，I Try to use the Snow Leopard ,But it lacks a feature.</p>
<p>Debian-like bash_completion! I missed you! So I Seached with Google!</p>
<p>To install it just do:</p>
<pre class="brush: bash; title: ; notranslate">
sudo port install bash-completion
echo &quot;source /opt/local/etc/bash_completion&quot; &gt;&gt; ~/.bash_profile
chmod +x ~/.bash_profile
</pre>
<p>Tip: You must have MacPorts installed to run the first command. MacPorts Form <a href="http://www.macports.org/" target="_blank">http://www.macports.org</a> .</p>
<p>If you don’t know yet what is bash_completion, it is  a feature for  shells to autocomplete commands. Example: You are on a git repository.  You type git fe and press TAB, bash_completion will fill “fetch” for  you. If you have branches, they are autocompleted too. GNU Tar only  shows files compatible with the filters you selected. So if you tar xvzf  my-softw TAB, it will complete only filenames that are on tar.gz or tgz  format and that starts with the string you already typed.</p>
<p>It is heaven again.</p>
]]></content:encoded>
			<wfw:commentRss>http://a18zhizao.com/y2010/1410_bash_completion-install-in-mac-os-x-snow-leopard.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add Bash Completion In Debian</title>
		<link>http://a18zhizao.com/y2010/1326_add-bash-completion-in-debian.html</link>
		<comments>http://a18zhizao.com/y2010/1326_add-bash-completion-in-debian.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 01:05:24 +0000</pubDate>
		<dc:creator>a18ccms</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://a18zhizao.com/?p=1326</guid>
		<description><![CDATA[Bash completion is a useful tool for completion of file paths, commands etc. By default it is enabled on Ubuntu but not on Debian. With two simple steps it can also be enabled on Debian. 1. Install bash-completion First of all we need the install the according package: apt-get install bash-completion 2. Add it to [...]]]></description>
			<content:encoded><![CDATA[<p>Bash completion is a useful tool for completion of file paths, commands etc. By default it is enabled on Ubuntu but not on Debian. With two simple steps it can also be enabled on Debian.</p>
<p>1. Install bash-completion</p>
<p>First of all we need the install the according package:<br />
<span id="more-1326"></span><br />
<code>apt-get install bash-completion</code></p>
<p>2. Add it to the bash profile</p>
<p>Either edit the ~/.bash_profile file to enable it only for a given user or edit /etc/profile to add it system-wide. Add the following code:</p>
<pre class="brush: bash; title: ; notranslate">
if [ -f /etc/bash_completion ]; then
 . /etc/bash_completion
fi
</pre>
<p>3. Try it<br />
In order for it to work you have to log out and relogin and then you can make use of bash completion the usual way. E.g. issue:</p>
<p><code>apt-g</code></p>
<p>and then press the TAB key once and the command will be completed to apt-get. Or issue this:</p>
<p><code>apt</code></p>
<p>and then press TAB key twice. You can also try with</p>
<p><code>apt-get install apa</code></p>
<p>and then press TAB key once to complete as far as possible and a second time to list all options.</p>
]]></content:encoded>
			<wfw:commentRss>http://a18zhizao.com/y2010/1326_add-bash-completion-in-debian.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

