<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: My BASH directory management</title>
	<atom:link href="http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/</link>
	<description>Vim... and stuff</description>
	<lastBuildDate>Sat, 11 May 2013 19:29:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Derek Wyatt</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-124161</link>
		<dc:creator>Derek Wyatt</dc:creator>
		<pubDate>Wed, 24 Apr 2013 11:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-124161</guid>
		<description><![CDATA[I&#039;m glad you&#039;re enjoying it.  The diagramming tool is called &lt;a href=&quot;http://deepitpro.com/en/mac/products/Diagrammix/info/index.shtml&quot; title=&quot;Diagrammix&quot; rel=&quot;nofollow&quot;&gt;Diagrammix&lt;/a&gt;.  It&#039;s only available for the Mac, unfortunately.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m glad you&#8217;re enjoying it.  The diagramming tool is called <a href="http://deepitpro.com/en/mac/products/Diagrammix/info/index.shtml" title="Diagrammix" rel="nofollow">Diagrammix</a>.  It&#8217;s only available for the Mac, unfortunately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mshirman</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-124072</link>
		<dc:creator>mshirman</dc:creator>
		<pubDate>Tue, 23 Apr 2013 23:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-124072</guid>
		<description><![CDATA[Hi Derek,

I&#039;m reading and enjoying your book. I&#039;m, of course, mesmerized by coolness and power of Akka, and also by the awesome looking flowcharts. Please, share what is the flowchart tool that you are using.]]></description>
		<content:encoded><![CDATA[<p>Hi Derek,</p>
<p>I&#8217;m reading and enjoying your book. I&#8217;m, of course, mesmerized by coolness and power of Akka, and also by the awesome looking flowcharts. Please, share what is the flowchart tool that you are using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: totalrecall</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-97644</link>
		<dc:creator>totalrecall</dc:creator>
		<pubDate>Mon, 07 Jan 2013 19:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-97644</guid>
		<description><![CDATA[Give zfm a try (you&#039;ll need zsh 5.0 for it).
https://github.com/rkumar/zfm

You can also try z (autojumper) by rupa (github rupa/z)]]></description>
		<content:encoded><![CDATA[<p>Give zfm a try (you&#8217;ll need zsh 5.0 for it).<br />
<a href="https://github.com/rkumar/zfm" rel="nofollow">https://github.com/rkumar/zfm</a></p>
<p>You can also try z (autojumper) by rupa (github rupa/z)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Wyatt</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-26311</link>
		<dc:creator>Derek Wyatt</dc:creator>
		<pubDate>Thu, 01 Sep 2011 12:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-26311</guid>
		<description><![CDATA[It&#039;s close the KSH version, I think.  I believe that KSH needed you to specify the entire directory - i.e. ccd computerscience1 computerscience2.  That&#039;s the path my script takes, at any rate.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s close the KSH version, I think.  I believe that KSH needed you to specify the entire directory &#8211; i.e. ccd computerscience1 computerscience2.  That&#8217;s the path my script takes, at any rate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: telemachus</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-26310</link>
		<dc:creator>telemachus</dc:creator>
		<pubDate>Thu, 01 Sep 2011 12:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-26310</guid>
		<description><![CDATA[I use the following a lot - which helps when you have directories that are nested deeply and very similar. So imagine you have $HOME/myschool/2010-2011/computerscience1/projects/grades, and you want to quickly switch to $HOME/myschool/2010-2011/computerscience2/projects/grades. 

Using the function below you type ccd e2 e1, and you&#039;re there. Not my own invention as the comments make clear. (I think it&#039;s based on a cd capability native to KSH but not Bash.)

# Shamelessly stolen from Learning the Bash Shell (3ed), Cameron Newham
# &amp; Bill Rosenblatt
ccd() {
    case &quot;$#&quot; in
        0&#124;1)
            builtin cd $1
            ;;
        2)
            newdir=${PWD//$1/$2}
    case &quot;$newdir&quot; in
        $PWD)
            echo &quot;bash: my_cd: bad substitution&quot; &gt;&amp;2
            return 1
            ;;
        *)
            builtin cd &quot;$newdir&quot;
            pwd
            ;;
        esac
            ;;
        *)
            echo &quot;bash: my_cd: wrong arg count&quot; 1&gt;&amp;2
            return 1
            ;;
        esac
}]]></description>
		<content:encoded><![CDATA[<p>I use the following a lot &#8211; which helps when you have directories that are nested deeply and very similar. So imagine you have $HOME/myschool/2010-2011/computerscience1/projects/grades, and you want to quickly switch to $HOME/myschool/2010-2011/computerscience2/projects/grades. </p>
<p>Using the function below you type ccd e2 e1, and you&#8217;re there. Not my own invention as the comments make clear. (I think it&#8217;s based on a cd capability native to KSH but not Bash.)</p>
<p># Shamelessly stolen from Learning the Bash Shell (3ed), Cameron Newham<br />
# &amp; Bill Rosenblatt<br />
ccd() {<br />
    case &#8220;$#&#8221; in<br />
        0|1)<br />
            builtin cd $1<br />
            ;;<br />
        2)<br />
            newdir=${PWD//$1/$2}<br />
    case &#8220;$newdir&#8221; in<br />
        $PWD)<br />
            echo &#8220;bash: my_cd: bad substitution&#8221; &gt;&amp;2<br />
            return 1<br />
            ;;<br />
        *)<br />
            builtin cd &#8220;$newdir&#8221;<br />
            pwd<br />
            ;;<br />
        esac<br />
            ;;<br />
        *)<br />
            echo &#8220;bash: my_cd: wrong arg count&#8221; 1&gt;&amp;2<br />
            return 1<br />
            ;;<br />
        esac<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Wyatt</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-25482</link>
		<dc:creator>Derek Wyatt</dc:creator>
		<pubDate>Thu, 18 Aug 2011 19:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-25482</guid>
		<description><![CDATA[Oh sure, I&#039;ve tried all that stuff over the years to see if it&#039;s evolved into something that works better for me, but it just hasn&#039;t turned out to be so.

I&#039;ve always loved the ability to &#039;csd test$&#039;, for example, to switch to the first instance of a test directory root in my recent history.

Hell, I don&#039;t even claim it&#039;s a well written script - it&#039;s not even real Bash, but a KSH/Bash hybrid monster of evolution :)

I will say, however, that &#039;ss&#039; isn&#039;t equivalent to dirs due to the fact that the directory pusher doesn&#039;t push dups and &#039;pushd&#039; requires that the user be smart enough not to push dups... I don&#039;t like having to think about what I&#039;m doing here.  I just move around with &#039;cd&#039; as I would normally and let the script do the rest.]]></description>
		<content:encoded><![CDATA[<p>Oh sure, I&#8217;ve tried all that stuff over the years to see if it&#8217;s evolved into something that works better for me, but it just hasn&#8217;t turned out to be so.</p>
<p>I&#8217;ve always loved the ability to &#8216;csd test$&#8217;, for example, to switch to the first instance of a test directory root in my recent history.</p>
<p>Hell, I don&#8217;t even claim it&#8217;s a well written script &#8211; it&#8217;s not even real Bash, but a KSH/Bash hybrid monster of evolution :)</p>
<p>I will say, however, that &#8216;ss&#8217; isn&#8217;t equivalent to dirs due to the fact that the directory pusher doesn&#8217;t push dups and &#8216;pushd&#8217; requires that the user be smart enough not to push dups&#8230; I don&#8217;t like having to think about what I&#8217;m doing here.  I just move around with &#8216;cd&#8217; as I would normally and let the script do the rest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guto</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-25480</link>
		<dc:creator>Guto</dc:creator>
		<pubDate>Thu, 18 Aug 2011 18:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-25480</guid>
		<description><![CDATA[s/cd ~/cd ~number/]]></description>
		<content:encoded><![CDATA[<p>s/cd ~/cd ~number/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guto</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-25479</link>
		<dc:creator>Guto</dc:creator>
		<pubDate>Thu, 18 Aug 2011 18:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-25479</guid>
		<description><![CDATA[Hi - have you tried &quot;dirs&quot;, &quot;pushd&quot;, &quot;popd&quot; and &quot;cd ~&quot;?

ss = dirs, however, your &quot;cds&quot; is more complex, a more elaborated mix of &quot;pushd&quot;, &quot;popd&quot; and &quot;cd ~&quot;]]></description>
		<content:encoded><![CDATA[<p>Hi &#8211; have you tried &#8220;dirs&#8221;, &#8220;pushd&#8221;, &#8220;popd&#8221; and &#8220;cd ~&#8221;?</p>
<p>ss = dirs, however, your &#8220;cds&#8221; is more complex, a more elaborated mix of &#8220;pushd&#8221;, &#8220;popd&#8221; and &#8220;cd ~&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Wyatt</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-25472</link>
		<dc:creator>Derek Wyatt</dc:creator>
		<pubDate>Thu, 18 Aug 2011 14:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-25472</guid>
		<description><![CDATA[Yup, saw that in the superuser post.  Noted it there, but it&#039;s good to note it here as well.]]></description>
		<content:encoded><![CDATA[<p>Yup, saw that in the superuser post.  Noted it there, but it&#8217;s good to note it here as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene</title>
		<link>http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/comment-page-1/#comment-25471</link>
		<dc:creator>Eugene</dc:creator>
		<pubDate>Thu, 18 Aug 2011 14:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.derekwyatt.org/2011/08/18/my-bash-directory-management/#comment-25471</guid>
		<description><![CDATA[You could also like this:
https://github.com/rupa/j2/]]></description>
		<content:encoded><![CDATA[<p>You could also like this:<br />
<a href="https://github.com/rupa/j2/" rel="nofollow">https://github.com/rupa/j2/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
