<?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: HOWTO: populate your term&#039;s title automatically</title>
	<atom:link href="http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/</link>
	<description>look out honey, &#039;cause I&#039;m using technology</description>
	<lastBuildDate>Sat, 11 Feb 2012 04:52:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: zixmail</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-758</link>
		<dc:creator>zixmail</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-758</guid>
		<description>hello friend, How to automatically capture visitors name/ID and populate attendance list .... Enter your  search terms!</description>
		<content:encoded><![CDATA[<p>hello friend, How to automatically capture visitors name/ID and populate attendance list &#8230;. Enter your  search terms!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zixmail</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-757</link>
		<dc:creator>zixmail</dc:creator>
		<pubDate>Fri, 18 Jun 2010 04:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-757</guid>
		<description>hello friend, How to automatically capture visitors name/ID and populate attendance list .... Enter your  search terms!</description>
		<content:encoded><![CDATA[<p>hello friend, How to automatically capture visitors name/ID and populate attendance list &#8230;. Enter your  search terms!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zixmail</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-1812</link>
		<dc:creator>zixmail</dc:creator>
		<pubDate>Fri, 18 Jun 2010 04:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-1812</guid>
		<description>hello friend, How to automatically capture visitors name/ID and populate attendance list .... Enter your  search terms!</description>
		<content:encoded><![CDATA[<p>hello friend, How to automatically capture visitors name/ID and populate attendance list &#8230;. Enter your  search terms!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HallBasham878</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-756</link>
		<dc:creator>HallBasham878</dc:creator>
		<pubDate>Tue, 27 Oct 2009 11:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-756</guid>
		<description>Hello Mate, I would like to know more on this when is the next post commingrespectjenny omper______________________________________________&lt;a href=&quot;http://www.PASSTHEDRUGTEST.com&quot; rel=&quot;nofollow&quot;&gt;passing hair drug test&lt;/a&gt; &#124; &lt;a href=&quot;http://www.PASSDRUGTESTKIT.com&quot; rel=&quot;nofollow&quot;&gt;pass drug test&lt;/a&gt; &#124; &lt;a href=&quot;http://www.PASS-ALL-DRUG-TEST.com&quot; rel=&quot;nofollow&quot;&gt;pass marijuana drug test&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hello Mate, I would like to know more on this when is the next post commingrespectjenny omper______________________________________________<a href="http://www.PASSTHEDRUGTEST.com" rel="nofollow">passing hair drug test</a> | <a href="http://www.PASSDRUGTESTKIT.com" rel="nofollow">pass drug test</a> | <a href="http://www.PASS-ALL-DRUG-TEST.com" rel="nofollow">pass marijuana drug test</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loan Modification leads</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-755</link>
		<dc:creator>Loan Modification leads</dc:creator>
		<pubDate>Thu, 04 Jun 2009 04:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-755</guid>
		<description>nice blog.. it will a lot.. especially for me... thnx</description>
		<content:encoded><![CDATA[<p>nice blog.. it will a lot.. especially for me&#8230; thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loan Modification leads</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-1636</link>
		<dc:creator>Loan Modification leads</dc:creator>
		<pubDate>Thu, 04 Jun 2009 04:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-1636</guid>
		<description>nice blog.. it will a lot.. especially for me... thnx</description>
		<content:encoded><![CDATA[<p>nice blog.. it will a lot.. especially for me&#8230; thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fak3r</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-754</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Fri, 22 Jun 2007 15:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-754</guid>
		<description>Nice, I never thought of that, the way I do it is have my PS1 contain this info:

&lt;code&gt;[11:04:49] [fak3r@chavez /home/faj3r/build/bin]$&lt;/code&gt;

This has all the info I need, plus it truncates the path if it get&#039;s too long, keeping my prompt at least a big consistant.  Here&#039;s my .bashrc:

&lt;code&gt;bash_prompt_command() {
            # How many characters of the $PWD should be kept
            local pwdmaxlen=25
            # Indicate that there has been dir truncation
            local trunc_symbol=&quot;..&quot;
            local dir=${PWD##*/}
            pwdmaxlen=$(( ( pwdmaxlen}
            local pwdoffset=$(( ${#NEW_PWD} - pwdmaxlen ))
            if [ ${pwdoffset} -gt &quot;0&quot; ]
                then
                NEW_PWD=${NEW_PWD:$pwdoffset:$pwdmaxlen}
                NEW_PWD=${trunc_symbol}/${NEW_PWD#*/}
            fi
}
#
bash_prompt() {
    local NONE=&#039;\[33[0m\]&#039;    # unsets color to term&#039;s fg color

        # regular colors
        local K=&#039;\[33[0;30m\]&#039;    # black
        local R=&#039;\[33[0;31m\]&#039;    # red
        local G=&#039;\[33[0;32m\]&#039;    # green
        local Y=&#039;\[33[0;33m\]&#039;    # yellow
        local B=&#039;\[33[0;34m\]&#039;    # blue
        local M=&#039;\[33[0;35m\]&#039;    # magenta
        local C=&#039;\[33[0;36m\]&#039;    # cyan
        local W=&#039;\[33[0;37m\]&#039;    # white

        # empahsized (bolded) colors
        local EMK=&#039;\[33[1;30m\]&#039;
        local EMR=&#039;\[33[1;31m\]&#039;
        local EMG=&#039;\[33[1;32m\]&#039;
        local EMY=&#039;\[33[1;33m\]&#039;
        local EMB=&#039;\[33[1;34m\]&#039;
        local EMM=&#039;\[33[1;35m\]&#039;
        local EMC=&#039;\[33[1;36m\]&#039;
        local EMW=&#039;\[33[1;37m\]&#039;

        # background colors
        local BGK=&#039;\[33[40m\]&#039;
        local BGR=&#039;\[33[41m\]&#039;
        local BGG=&#039;\[33[42m\]&#039;
        local BGY=&#039;\[33[43m\]&#039;
        local BGB=&#039;\[33[44m\]&#039;
        local BGM=&#039;\[33[45m\]&#039;
        local BGC=&#039;\[33[46m\]&#039;
        local BGW=&#039;\[33[47m\]&#039;

        local UC=$C                 # user&#039;s color
        [ $UID -eq &quot;0&quot; ] &amp;&amp; UC=$R   # root&#039;s color

        PS1=&quot;${W}[\t${W}] ${Y}[${R}\u${R}@${R}\h ${EMB}\${NEW_PWD}${Y}]${W}\\$ ${NONE}&quot;
}
#
PROMPT_COMMAND=bash_prompt_command
bash_prompt
unset bash_prompt
&lt;/code&gt;

Appreciate the advice!</description>
		<content:encoded><![CDATA[<p>Nice, I never thought of that, the way I do it is have my PS1 contain this info:</p>
<p><code>[11:04:49] [fak3r@chavez /home/faj3r/build/bin]$</code></p>
<p>This has all the info I need, plus it truncates the path if it get&#8217;s too long, keeping my prompt at least a big consistant.  Here&#8217;s my .bashrc:</p>
<p><code>bash_prompt_command() {<br />
            # How many characters of the $PWD should be kept<br />
            local pwdmaxlen=25<br />
            # Indicate that there has been dir truncation<br />
            local trunc_symbol=".."<br />
            local dir=${PWD##*/}<br />
            pwdmaxlen=$(( ( pwdmaxlen}<br />
            local pwdoffset=$(( ${#NEW_PWD} - pwdmaxlen ))<br />
            if [ ${pwdoffset} -gt "0" ]<br />
                then<br />
                NEW_PWD=${NEW_PWD:$pwdoffset:$pwdmaxlen}<br />
                NEW_PWD=${trunc_symbol}/${NEW_PWD#*/}<br />
            fi<br />
}<br />
#<br />
bash_prompt() {<br />
    local NONE='\[33[0m\]'    # unsets color to term's fg color</p>
<p>        # regular colors<br />
        local K='\[33[0;30m\]'    # black<br />
        local R='\[33[0;31m\]'    # red<br />
        local G='\[33[0;32m\]'    # green<br />
        local Y='\[33[0;33m\]'    # yellow<br />
        local B='\[33[0;34m\]'    # blue<br />
        local M='\[33[0;35m\]'    # magenta<br />
        local C='\[33[0;36m\]'    # cyan<br />
        local W='\[33[0;37m\]'    # white</p>
<p>        # empahsized (bolded) colors<br />
        local EMK='\[33[1;30m\]'<br />
        local EMR='\[33[1;31m\]'<br />
        local EMG='\[33[1;32m\]'<br />
        local EMY='\[33[1;33m\]'<br />
        local EMB='\[33[1;34m\]'<br />
        local EMM='\[33[1;35m\]'<br />
        local EMC='\[33[1;36m\]'<br />
        local EMW='\[33[1;37m\]'</p>
<p>        # background colors<br />
        local BGK='\[33[40m\]'<br />
        local BGR='\[33[41m\]'<br />
        local BGG='\[33[42m\]'<br />
        local BGY='\[33[43m\]'<br />
        local BGB='\[33[44m\]'<br />
        local BGM='\[33[45m\]'<br />
        local BGC='\[33[46m\]'<br />
        local BGW='\[33[47m\]'</p>
<p>        local UC=$C                 # user's color<br />
        [ $UID -eq "0" ] &amp;&amp; UC=$R   # root's color</p>
<p>        PS1="${W}[\t${W}] ${Y}[${R}\u${R}@${R}\h ${EMB}\${NEW_PWD}${Y}]${W}\\$ ${NONE}"<br />
}<br />
#<br />
PROMPT_COMMAND=bash_prompt_command<br />
bash_prompt<br />
unset bash_prompt<br />
</code></p>
<p>Appreciate the advice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fak3r</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-760</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Fri, 22 Jun 2007 15:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-760</guid>
		<description>Nice, I never thought of that, the way I do it is have my PS1 contain this info:

&lt;code&gt;[11:04:49] [fak3r@chavez /home/faj3r/build/bin]$&lt;/code&gt;

This has all the info I need, plus it truncates the path if it get&#039;s too long, keeping my prompt at least a big consistant.  Here&#039;s my .bashrc:

&lt;code&gt;bash_prompt_command() {
            # How many characters of the $PWD should be kept
            local pwdmaxlen=25
            # Indicate that there has been dir truncation
            local trunc_symbol=&quot;..&quot;
            local dir=${PWD##*/}
            pwdmaxlen=$(( ( pwdmaxlen}
            local pwdoffset=$(( ${#NEW_PWD} - pwdmaxlen ))
            if [ ${pwdoffset} -gt &quot;0&quot; ]
                then
                NEW_PWD=${NEW_PWD:$pwdoffset:$pwdmaxlen}
                NEW_PWD=${trunc_symbol}/${NEW_PWD#*/}
            fi
}
#
bash_prompt() {
    local NONE=&#039;[33[0m]&#039;    # unsets color to term&#039;s fg color

        # regular colors
        local K=&#039;[33[0;30m]&#039;    # black
        local R=&#039;[33[0;31m]&#039;    # red
        local G=&#039;[33[0;32m]&#039;    # green
        local Y=&#039;[33[0;33m]&#039;    # yellow
        local B=&#039;[33[0;34m]&#039;    # blue
        local M=&#039;[33[0;35m]&#039;    # magenta
        local C=&#039;[33[0;36m]&#039;    # cyan
        local W=&#039;[33[0;37m]&#039;    # white

        # empahsized (bolded) colors
        local EMK=&#039;[33[1;30m]&#039;
        local EMR=&#039;[33[1;31m]&#039;
        local EMG=&#039;[33[1;32m]&#039;
        local EMY=&#039;[33[1;33m]&#039;
        local EMB=&#039;[33[1;34m]&#039;
        local EMM=&#039;[33[1;35m]&#039;
        local EMC=&#039;[33[1;36m]&#039;
        local EMW=&#039;[33[1;37m]&#039;

        # background colors
        local BGK=&#039;[33[40m]&#039;
        local BGR=&#039;[33[41m]&#039;
        local BGG=&#039;[33[42m]&#039;
        local BGY=&#039;[33[43m]&#039;
        local BGB=&#039;[33[44m]&#039;
        local BGM=&#039;[33[45m]&#039;
        local BGC=&#039;[33[46m]&#039;
        local BGW=&#039;[33[47m]&#039;

        local UC=$C                 # user&#039;s color
        [ $UID -eq &quot;0&quot; ] &amp;&amp; UC=$R   # root&#039;s color

        PS1=&quot;${W}[t${W}] ${Y}[${R}u${R}@${R}h ${EMB}${NEW_PWD}${Y}]${W}\$ ${NONE}&quot;
}
#
PROMPT_COMMAND=bash_prompt_command
bash_prompt
unset bash_prompt
&lt;/code&gt;

Appreciate the advice!</description>
		<content:encoded><![CDATA[<p>Nice, I never thought of that, the way I do it is have my PS1 contain this info:</p>
<p><code>[11:04:49] [fak3r@chavez /home/faj3r/build/bin]$</code></p>
<p>This has all the info I need, plus it truncates the path if it get&#8217;s too long, keeping my prompt at least a big consistant.  Here&#8217;s my .bashrc:</p>
<p><code>bash_prompt_command() {<br />
            # How many characters of the $PWD should be kept<br />
            local pwdmaxlen=25<br />
            # Indicate that there has been dir truncation<br />
            local trunc_symbol=".."<br />
            local dir=${PWD##*/}<br />
            pwdmaxlen=$(( ( pwdmaxlen}<br />
            local pwdoffset=$(( ${#NEW_PWD} - pwdmaxlen ))<br />
            if [ ${pwdoffset} -gt "0" ]<br />
                then<br />
                NEW_PWD=${NEW_PWD:$pwdoffset:$pwdmaxlen}<br />
                NEW_PWD=${trunc_symbol}/${NEW_PWD#*/}<br />
            fi<br />
}<br />
#<br />
bash_prompt() {<br />
    local NONE='[33[0m]'    # unsets color to term's fg color</p>
<p>        # regular colors<br />
        local K='[33[0;30m]'    # black<br />
        local R='[33[0;31m]'    # red<br />
        local G='[33[0;32m]'    # green<br />
        local Y='[33[0;33m]'    # yellow<br />
        local B='[33[0;34m]'    # blue<br />
        local M='[33[0;35m]'    # magenta<br />
        local C='[33[0;36m]'    # cyan<br />
        local W='[33[0;37m]'    # white</p>
<p>        # empahsized (bolded) colors<br />
        local EMK='[33[1;30m]'<br />
        local EMR='[33[1;31m]'<br />
        local EMG='[33[1;32m]'<br />
        local EMY='[33[1;33m]'<br />
        local EMB='[33[1;34m]'<br />
        local EMM='[33[1;35m]'<br />
        local EMC='[33[1;36m]'<br />
        local EMW='[33[1;37m]'</p>
<p>        # background colors<br />
        local BGK='[33[40m]'<br />
        local BGR='[33[41m]'<br />
        local BGG='[33[42m]'<br />
        local BGY='[33[43m]'<br />
        local BGB='[33[44m]'<br />
        local BGM='[33[45m]'<br />
        local BGC='[33[46m]'<br />
        local BGW='[33[47m]'</p>
<p>        local UC=$C                 # user's color<br />
        [ $UID -eq "0" ] &amp;&amp; UC=$R   # root's color</p>
<p>        PS1="${W}[t${W}] ${Y}[${R}u${R}@${R}h ${EMB}${NEW_PWD}${Y}]${W}\$ ${NONE}"<br />
}<br />
#<br />
PROMPT_COMMAND=bash_prompt_command<br />
bash_prompt<br />
unset bash_prompt<br />
</code></p>
<p>Appreciate the advice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cas</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-753</link>
		<dc:creator>cas</dc:creator>
		<pubDate>Thu, 21 Jun 2007 19:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-753</guid>
		<description>Seems to work.

Have you considered putting this into a shell function in your .bashrc,
titled something like, &quot;set_title&quot;.

Then.  If you were to create a &quot;_cd&quot; function that did &quot;cd&quot; $@ first thing, then executed your set_title with a parameter, you could even figure out how to get your current working directory in your title bar.

If you wanted to, that is.

I usually combine the title setting with the setting of my PS1 variable in my _cd().

Hope this finds you well,
cas</description>
		<content:encoded><![CDATA[<p>Seems to work.</p>
<p>Have you considered putting this into a shell function in your .bashrc,<br />
titled something like, &#8220;set_title&#8221;.</p>
<p>Then.  If you were to create a &#8220;_cd&#8221; function that did &#8220;cd&#8221; $@ first thing, then executed your set_title with a parameter, you could even figure out how to get your current working directory in your title bar.</p>
<p>If you wanted to, that is.</p>
<p>I usually combine the title setting with the setting of my PS1 variable in my _cd().</p>
<p>Hope this finds you well,<br />
cas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cas</title>
		<link>http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-759</link>
		<dc:creator>cas</dc:creator>
		<pubDate>Thu, 21 Jun 2007 19:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://fak3r.com/2007/06/13/howto-populate-your-terms-title-automatically/#comment-759</guid>
		<description>Seems to work.

Have you considered putting this into a shell function in your .bashrc,
titled something like, &quot;set_title&quot;.

Then.  If you were to create a &quot;_cd&quot; function that did &quot;cd&quot; $@ first thing, then executed your set_title with a parameter, you could even figure out how to get your current working directory in your title bar.

If you wanted to, that is.

I usually combine the title setting with the setting of my PS1 variable in my _cd().

Hope this finds you well,
cas</description>
		<content:encoded><![CDATA[<p>Seems to work.</p>
<p>Have you considered putting this into a shell function in your .bashrc,<br />
titled something like, &#8220;set_title&#8221;.</p>
<p>Then.  If you were to create a &#8220;_cd&#8221; function that did &#8220;cd&#8221; $@ first thing, then executed your set_title with a parameter, you could even figure out how to get your current working directory in your title bar.</p>
<p>If you wanted to, that is.</p>
<p>I usually combine the title setting with the setting of my PS1 variable in my _cd().</p>
<p>Hope this finds you well,<br />
cas</p>
]]></content:encoded>
	</item>
</channel>
</rss>

