<?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: Navigating the Directory Stack in &#8216;bash&#8217;</title>
	<atom:link href="http://www.aijazansari.com/2010/02/20/navigating-the-directory-stack-in-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aijazansari.com/2010/02/20/navigating-the-directory-stack-in-bash/</link>
	<description>For people who like to make things</description>
	<lastBuildDate>Tue, 20 Jul 2010 07:00:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Aijaz Ansari</title>
		<link>http://www.aijazansari.com/2010/02/20/navigating-the-directory-stack-in-bash/comment-page-1/#comment-95</link>
		<dc:creator>Aijaz Ansari</dc:creator>
		<pubDate>Sat, 10 Apr 2010 20:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.aijazansari.com/?p=338#comment-95</guid>
		<description>holgie: 

I keep a list of topics in a Google Docs document.  Whenever I come across something I thing would be interesting to write about, I add it to that list.  If it&#039;s a web page I sometimes tag it on delicious.com.  That way I can come back and write about any of the topics when I have the time.  

Hope that helps,

Aijaz</description>
		<content:encoded><![CDATA[<p>holgie: </p>
<p>I keep a list of topics in a Google Docs document.  Whenever I come across something I thing would be interesting to write about, I add it to that list.  If it&#8217;s a web page I sometimes tag it on delicious.com.  That way I can come back and write about any of the topics when I have the time.  </p>
<p>Hope that helps,</p>
<p>Aijaz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: holgie</title>
		<link>http://www.aijazansari.com/2010/02/20/navigating-the-directory-stack-in-bash/comment-page-1/#comment-90</link>
		<dc:creator>holgie</dc:creator>
		<pubDate>Fri, 09 Apr 2010 02:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.aijazansari.com/?p=338#comment-90</guid>
		<description>How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great</description>
		<content:encoded><![CDATA[<p>How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mehul</title>
		<link>http://www.aijazansari.com/2010/02/20/navigating-the-directory-stack-in-bash/comment-page-1/#comment-22</link>
		<dc:creator>Mehul</dc:creator>
		<pubDate>Thu, 11 Mar 2010 02:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.aijazansari.com/?p=338#comment-22</guid>
		<description>So here&#039;s what I&#039;ve been using since the early 90&#039;s:

[code lang=&quot;bash&quot;]
# set the title of an xterm to $PWD
function xtitle()
  {
    if test &quot;$TERM&quot; = &quot;xterm&quot; -o &quot;$DISPLAY&quot; != &quot;&quot;; then
        ROOT=&#039;&#039;
        if test &quot;$UID&quot; = &quot;0&quot;; then ROOT=&#039;# &#039;; fi
        HOSTNAME=`hostname &#124; tr [a-z] [A-Z]`
        echo -e &quot;\33]2;$HOSTNAME $ROOT  $PWD&#092;&#048;7&quot;
        echo -e &quot;\33]1;$HOSTNAME $ROOT  $PWD&#092;&#048;7&quot;
   fi
  }

function cd()
  {
    if [ x&quot;${1}&quot; = x ]
    then
      builtin cd &quot;${HOME}&quot;
    else
      builtin cd &quot;${1}&quot;
    fi
    xtitle
  }

function pd()
  {
      if [ x&quot;${1}&quot; = x ]
      then
          builtin pushd +1
      else
          builtin pushd &quot;$1&quot;
      fi
      xtitle
  }

function po()
  {
      if [ x&quot;${1}&quot; = x ]
      then
          builtin popd +0
      else
          builtin popd &quot;$1&quot;
      fi
      xtitle
  }


function sd()
{
   builtin dirs -v
}

[/code]


I put them in my &lt;i&gt;~/Env/bash/funcs&lt;/i&gt; file which gets sourced by &lt;i&gt;~/.bashrc&lt;/i&gt;


&lt;i&gt;Comment updated by Aijaz - Tried to format code with syntax highlighter.  No other changes.&lt;/i&gt;</description>
		<content:encoded><![CDATA[<p>So here&#8217;s what I&#8217;ve been using since the early 90&#8242;s:</p>
<pre class="brush: bash;">
# set the title of an xterm to $PWD
function xtitle()
  {
    if test &quot;$TERM&quot; = &quot;xterm&quot; -o &quot;$DISPLAY&quot; != &quot;&quot;; then
        ROOT=''
        if test &quot;$UID&quot; = &quot;0&quot;; then ROOT='# '; fi
        HOSTNAME=`hostname | tr [a-z] [A-Z]`
        echo -e &quot;\33]2;$HOSTNAME $ROOT  $PWD&#92;&#48;7&quot;
        echo -e &quot;\33]1;$HOSTNAME $ROOT  $PWD&#92;&#48;7&quot;
   fi
  }

function cd()
  {
    if [ x&quot;${1}&quot; = x ]
    then
      builtin cd &quot;${HOME}&quot;
    else
      builtin cd &quot;${1}&quot;
    fi
    xtitle
  }

function pd()
  {
      if [ x&quot;${1}&quot; = x ]
      then
          builtin pushd +1
      else
          builtin pushd &quot;$1&quot;
      fi
      xtitle
  }

function po()
  {
      if [ x&quot;${1}&quot; = x ]
      then
          builtin popd +0
      else
          builtin popd &quot;$1&quot;
      fi
      xtitle
  }

function sd()
{
   builtin dirs -v
}
</pre>
<p>I put them in my <i>~/Env/bash/funcs</i> file which gets sourced by <i>~/.bashrc</i></p>
<p><i>Comment updated by Aijaz &#8211; Tried to format code with syntax highlighter.  No other changes.</i></p>
]]></content:encoded>
	</item>
</channel>
</rss>
