<?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: Customize your bash prompt</title>
	<atom:link href="http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/</link>
	<description>because I don't believe in life before coffee...</description>
	<lastBuildDate>Wed, 28 Oct 2009 06:44:36 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: coredump</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-369994</link>
		<dc:creator>coredump</dc:creator>
		<pubDate>Mon, 25 Aug 2008 19:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-369994</guid>
		<description>on the colorful prompt note, i was inspired by the linux from scratch live cd prompt.  so i changed it up a little:

for normal user:
PS1=&#039;\[\e[1;32m\]\u [ \[\e[1;33m\]\h\[\e[1;32m\] ][ \[\e[1;33m\]\w\[\e[1;32m\] ]$ \[\e[0m\]&#039;

for root:
PS1=&#039;\[\e[1;31m\]\u [ \[\e[1;33m\]\h\[\e[1;31m\] ][ \[\e[1;33m\]\w\[\e[1;31m\] ]# \[\e[0m\]&#039;

basically, its like so:
coredump [ server ][ ~ ]$

for normal user, its all green except the host name and the pwd is yellow.  for root, the green is red.  i havent had to deal too much with long directory names, if it gets to be a prob, i will move the [ ~ ] above the prompt:

[~]
coredump [ server ]$

i like the host name in there because i deal with several linux boxes and am always cross shelling into them from the others and it helps to keep some sanity.</description>
		<content:encoded><![CDATA[<p>on the colorful prompt note, i was inspired by the linux from scratch live cd prompt.  so i changed it up a little:</p>
<p>for normal user:<br />
PS1=&#8217;\[\e[1;32m\]\u [ \[\e[1;33m\]\h\[\e[1;32m\] ][ \[\e[1;33m\]\w\[\e[1;32m\] ]$ \[\e[0m\]&#8216;</p>
<p>for root:<br />
PS1=&#8217;\[\e[1;31m\]\u [ \[\e[1;33m\]\h\[\e[1;31m\] ][ \[\e[1;33m\]\w\[\e[1;31m\] ]# \[\e[0m\]&#8216;</p>
<p>basically, its like so:<br />
coredump [ server ][ ~ ]$</p>
<p>for normal user, its all green except the host name and the pwd is yellow.  for root, the green is red.  i havent had to deal too much with long directory names, if it gets to be a prob, i will move the [ ~ ] above the prompt:</p>
<p>[~]<br />
coredump [ server ]$</p>
<p>i like the host name in there because i deal with several linux boxes and am always cross shelling into them from the others and it helps to keep some sanity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-366840</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Sun, 10 Feb 2008 06:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-366840</guid>
		<description>I&#039;m searching for a way to display the version of the system and for the prompt to change colors when I am running commands as root.

Any ideas?

Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m searching for a way to display the version of the system and for the prompt to change colors when I am running commands as root.</p>
<p>Any ideas?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Emmons</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-363666</link>
		<dc:creator>Jon Emmons</dc:creator>
		<pubDate>Fri, 18 Jan 2008 21:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-363666</guid>
		<description>Chandra,

Sorry for the delayed response.  You should be able to add `pwd` to your prompt to display the current directory.  Note that it needs to be between back-quotes (shift-tilde).

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Chandra,</p>
<p>Sorry for the delayed response.  You should be able to add `pwd` to your prompt to display the current directory.  Note that it needs to be between back-quotes (shift-tilde).</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandra</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-348613</link>
		<dc:creator>chandra</dc:creator>
		<pubDate>Sun, 23 Dec 2007 12:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-348613</guid>
		<description>Hi, 
Could you please let me know how can i set my present working view name as my prompt in bash shell?
thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Could you please let me know how can i set my present working view name as my prompt in bash shell?<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitish Anand</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-302962</link>
		<dc:creator>Nitish Anand</dc:creator>
		<pubDate>Thu, 11 Oct 2007 13:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-302962</guid>
		<description>Very Informative.</description>
		<content:encoded><![CDATA[<p>Very Informative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitish Anand</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-302961</link>
		<dc:creator>Nitish Anand</dc:creator>
		<pubDate>Thu, 11 Oct 2007 13:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-302961</guid>
		<description>Very informative and simple to implement....good work with dedication. thx.</description>
		<content:encoded><![CDATA[<p>Very informative and simple to implement&#8230;.good work with dedication. thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt A</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-255906</link>
		<dc:creator>Matt A</dc:creator>
		<pubDate>Fri, 27 Jul 2007 00:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-255906</guid>
		<description>Thanks for the tips!</description>
		<content:encoded><![CDATA[<p>Thanks for the tips!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tHOM!</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-196632</link>
		<dc:creator>tHOM!</dc:creator>
		<pubDate>Thu, 31 May 2007 16:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-196632</guid>
		<description>Hi there !

I stumbled upon this site and thought I could give Gary&#039;s promt a try. I like it a lot and modified it a bit for use with colorful terminals. Here&#039;s what I use now:

&lt;code&gt;
PS1=&quot;\[33[01;32m\]\u@\h \[33[01;31m\]uid:\${UID} \[33[01;34m\]\d \[33[01;33m\]\w
\[33[00m\]\t \[33[01;32m\]&gt;\[33[00m\] &quot;
&lt;/code&gt;

The uid display is arguable I guess and I use it only on the root prompt.

Cheers !</description>
		<content:encoded><![CDATA[<p>Hi there !</p>
<p>I stumbled upon this site and thought I could give Gary&#8217;s promt a try. I like it a lot and modified it a bit for use with colorful terminals. Here&#8217;s what I use now:</p>
<p><code><br />
PS1="\[33[01;32m\]\u@\h \[33[01;31m\]uid:\${UID} \[33[01;34m\]\d \[33[01;33m\]\w<br />
\[33[00m\]\t \[33[01;32m\]&gt;\[33[00m\] "<br />
</code></p>
<p>The uid display is arguable I guess and I use it only on the root prompt.</p>
<p>Cheers !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Emmons</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-14176</link>
		<dc:creator>Jon Emmons</dc:creator>
		<pubDate>Sat, 02 Dec 2006 20:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-14176</guid>
		<description>Thank you God, I dind&#039;t want to be the one to say it.</description>
		<content:encoded><![CDATA[<p>Thank you God, I dind&#8217;t want to be the one to say it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: God</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-14175</link>
		<dc:creator>God</dc:creator>
		<pubDate>Sat, 02 Dec 2006 20:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-14175</guid>
		<description>You&#039;re a weenie, Camden.</description>
		<content:encoded><![CDATA[<p>You&#8217;re a weenie, Camden.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
