<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Shell tricks: shorthands</title>
	<atom:link href="http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/feed/" rel="self" type="application/rss+xml" />
	<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/</link>
	<description>Random Computer Musings</description>
	<pubDate>Thu, 20 Nov 2008 22:05:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Alexandre</title>
		<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-218</link>
		<dc:creator>Alexandre</dc:creator>
		<pubDate>Fri, 19 Oct 2007 13:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-218</guid>
		<description>&lt;p&gt;Azrael, I think you missed the point of my aliases. It is not for making the command easier to remember, but simply to make them shorter and easier to type. Although, I have to admit &lt;code&gt;wajig&lt;/code&gt; looks like neat little wrapper. Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Azrael, I think you missed the point of my aliases. It is not for making the command easier to remember, but simply to make them shorter and easier to type. Although, I have to admit <code>wajig</code> looks like neat little wrapper. Thanks.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre</title>
		<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-212</link>
		<dc:creator>Alexandre</dc:creator>
		<pubDate>Fri, 19 Oct 2007 13:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-212</guid>
		<description>&lt;p&gt;bartman, Zsh's extended globing feature is kinda neat, but it sucks for searching through many files:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;% grep ^malloc src/**/*.[ch]
zsh: argument list too long: grep
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It is basically equivalent to:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;% grep ^malloc `find src/ -name '*.[ch]'`
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Personally, I like to keep the amount of meta-characters at a minimum. So, I would prefer using the &lt;code&gt;find&lt;/code&gt; version.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>bartman, Zsh&#8217;s extended globing feature is kinda neat, but it sucks for searching through many files:</p>

<pre><code>% grep ^malloc src/**/*.[ch]
zsh: argument list too long: grep
</code></pre>

<p>It is basically equivalent to:</p>

<pre><code>% grep ^malloc `find src/ -name '*.[ch]&#8216;`
</code></pre>

<p>Personally, I like to keep the amount of meta-characters at a minimum. So, I would prefer using the <code>find</code> version.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Azrael Nightwalker</title>
		<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-215</link>
		<dc:creator>Azrael Nightwalker</dc:creator>
		<pubDate>Fri, 19 Oct 2007 10:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-215</guid>
		<description>&lt;p&gt;Use wajig and you won't have to set up many of those aliases.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Use wajig and you won&#8217;t have to set up many of those aliases.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-217</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Thu, 18 Oct 2007 18:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-217</guid>
		<description>&lt;p&gt;One feature I really miss in *buntu is history-search-backward/forward in bash. This is where you are able to start typing a command, press page up or down (default keys I like) and it completes it with commands from your history which match what you've typed so far.&lt;/p&gt;

&lt;p&gt;System wide way to enable it is to un-comment the two lines shown below,&lt;/p&gt;

&lt;p&gt;"e[5~": history-search-backward&lt;/p&gt;

&lt;p&gt;"e[6~": history-search-forward&lt;/p&gt;

&lt;p&gt;Great feature, not sure why its disabled by default!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>One feature I really miss in *buntu is history-search-backward/forward in bash. This is where you are able to start typing a command, press page up or down (default keys I like) and it completes it with commands from your history which match what you&#8217;ve typed so far.</p>

<p>System wide way to enable it is to un-comment the two lines shown below,</p>

<p>&#8220;e[5~&#8221;: history-search-backward</p>

<p>&#8220;e[6~&#8221;: history-search-forward</p>

<p>Great feature, not sure why its disabled by default!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Zamber</title>
		<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-213</link>
		<dc:creator>Zamber</dc:creator>
		<pubDate>Thu, 18 Oct 2007 17:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-213</guid>
		<description>&lt;p&gt;Send a info to Lifehacker.com! A couple months ago they had some tweaking like this described but it wasn't so advanced ;).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Send a info to Lifehacker.com! A couple months ago they had some tweaking like this described but it wasn&#8217;t so advanced ;).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bartman</title>
		<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-214</link>
		<dc:creator>bartman</dc:creator>
		<pubDate>Thu, 18 Oct 2007 16:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-214</guid>
		<description>&lt;p&gt;Looks like you're missing the '**' zsh trick.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;% find Lib/ -name '*.c' -print0 &#124; xargs -0 grep ^PyErr&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;can be rewritten as&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;% grep \^PyErr Lib/**/*.c&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;With ** zsh will do all the hard work of finding the files.  Note however that I had to escape ^, because in zsh it means "match everything but ...".  Alternatively you can put your match expression in quotes.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Looks like you&#8217;re missing the &#8216;**&#8217; zsh trick.</p>

<pre><code>% find Lib/ -name '*.c' -print0 | xargs -0 grep ^PyErr</code></pre>

<p>can be rewritten as</p>

<pre><code>% grep \^PyErr Lib/**/*.c</code></pre>

<p>With ** zsh will do all the hard work of finding the files.  Note however that I had to escape ^, because in zsh it means &#8220;match everything but &#8230;&#8221;.  Alternatively you can put your match expression in quotes.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Galvin</title>
		<link>http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-216</link>
		<dc:creator>Matt Galvin</dc:creator>
		<pubDate>Thu, 18 Oct 2007 16:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/10/18/shell-tricks-shorthands/#comment-216</guid>
		<description>&lt;p&gt;Great post!&lt;/p&gt;

&lt;p&gt;Something I like to do with Type-A commands is rather then an alias of &lt;code&gt;spkgi&lt;/code&gt;, I use an alias of &lt;code&gt;install&lt;/code&gt;, &lt;code&gt;upgrade&lt;/code&gt;, &lt;code&gt;remove&lt;/code&gt;, etc... simple verbs that even less experienced users would easily understand how to use. So we get:&lt;/p&gt;

&lt;p&gt;install banshee
install apache2&lt;/p&gt;

&lt;p&gt;and the like. Very easy to understand and remember, IMHO.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great post!</p>

<p>Something I like to do with Type-A commands is rather then an alias of <code>spkgi</code>, I use an alias of <code>install</code>, <code>upgrade</code>, <code>remove</code>, etc&#8230; simple verbs that even less experienced users would easily understand how to use. So we get:</p>

<p>install banshee
install apache2</p>

<p>and the like. Very easy to understand and remember, IMHO.</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.526 seconds -->
