<?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, 23 Nov 2011 03:01:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Cary</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-379504</link>
		<dc:creator>Cary</dc:creator>
		<pubDate>Wed, 06 Jul 2011 18:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-379504</guid>
		<description>Jon -- thanks very much for this post, it was exactly what I was looking for.  Thanks to all the helpful commenters as well!</description>
		<content:encoded><![CDATA[<p>Jon &#8212; thanks very much for this post, it was exactly what I was looking for.  Thanks to all the helpful commenters as well!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clayton</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-378176</link>
		<dc:creator>Clayton</dc:creator>
		<pubDate>Sat, 19 Mar 2011 01:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-378176</guid>
		<description>Great tips, thanks.</description>
		<content:encoded><![CDATA[<p>Great tips, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Mularien</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-378160</link>
		<dc:creator>Peter Mularien</dc:creator>
		<pubDate>Thu, 17 Mar 2011 15:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-378160</guid>
		<description>@coredump, thanks, this prompt is really nice looking!

@Jon E, thanks for the great reference!</description>
		<content:encoded><![CDATA[<p>@coredump, thanks, this prompt is really nice looking!</p>
<p>@Jon E, thanks for the great reference!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin Lam</title>
		<link>http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/comment-page-1/#comment-376354</link>
		<dc:creator>Edwin Lam</dc:creator>
		<pubDate>Tue, 05 Oct 2010 23:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/10/31/customize-your-bash-prompt/#comment-376354</guid>
		<description>This works for the first login for me. For root login after (i.e. su -), I needed to do the PS1 and export in two separate steps:

###
PS1=&quot;[\u@\w]\\$ &quot;
export PS1
###

Environment:
###
[root@/var/www/html]# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.4 (Final)
Release:        5.4
Codename:       Final
[root@/var/www/html]# /bin/bash --version
GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
###

cheers

Jabez Networks, Inc.
&lt;a href=&quot;http://www.jabez-networks.com&quot; rel=&quot;nofollow&quot;&gt;Best in SEO and China Business&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This works for the first login for me. For root login after (i.e. su -), I needed to do the PS1 and export in two separate steps:</p>
<p>###<br />
PS1=&#8221;[\u@\w]\\$ &#8221;<br />
export PS1<br />
###</p>
<p>Environment:<br />
###<br />
[root@/var/www/html]# lsb_release -a<br />
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch<br />
Distributor ID: CentOS<br />
Description:    CentOS release 5.4 (Final)<br />
Release:        5.4<br />
Codename:       Final<br />
[root@/var/www/html]# /bin/bash &#8211;version<br />
GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu)<br />
Copyright (C) 2005 Free Software Foundation, Inc.<br />
###</p>
<p>cheers</p>
<p>Jabez Networks, Inc.<br />
<a href="http://www.jabez-networks.com" rel="nofollow">Best in SEO and China Business</a></p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

