<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Changing the colour of the root prompt in a bash shell</title>
	<atom:link href="http://blog.roachy.net/2008/02/25/changing-the-colour-of-the-root-prompt-in-a-bash-shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.roachy.net/2008/02/25/changing-the-colour-of-the-root-prompt-in-a-bash-shell/</link>
	<description>A digital notebook of technical experiences</description>
	<lastBuildDate>Tue, 24 Aug 2010 21:10:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Paul Roach</title>
		<link>http://blog.roachy.net/2008/02/25/changing-the-colour-of-the-root-prompt-in-a-bash-shell/#comment-216</link>
		<dc:creator>Paul Roach</dc:creator>
		<pubDate>Tue, 05 May 2009 19:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumblings.wordpress.com/?p=15#comment-216</guid>
		<description>Tweaked this now...

function setprompt
{
local RED=&quot;$(tput setaf 1)&quot;
local RESET=&quot;$(tput sgr0)&quot;
if [ `id -u` = 0 ] # check if user is root
then
PS1=&quot;$RED root@$HOSTNAME:# $RESET &quot;
else
PS1=&quot;$USERNAME@$HOSTNAME:$ $RESET &quot;
fi
}
setprompt</description>
		<content:encoded><![CDATA[<p>Tweaked this now&#8230;</p>
<p>function setprompt<br />
{<br />
local RED=&#8221;$(tput setaf 1)&#8221;<br />
local RESET=&#8221;$(tput sgr0)&#8221;<br />
if [ `id -u` = 0 ] # check if user is root<br />
then<br />
PS1=&#8221;$RED root@$HOSTNAME:# $RESET &#8221;<br />
else<br />
PS1=&#8221;$USERNAME@$HOSTNAME:$ $RESET &#8221;<br />
fi<br />
}<br />
setprompt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaFoot</title>
		<link>http://blog.roachy.net/2008/02/25/changing-the-colour-of-the-root-prompt-in-a-bash-shell/#comment-179</link>
		<dc:creator>DaFoot</dc:creator>
		<pubDate>Sat, 20 Dec 2008 18:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumblings.wordpress.com/?p=15#comment-179</guid>
		<description>Interesting stuff.... looks like what I&#039;ve been looking for, almost. When I login as root I get the red but the prompt is the string literal rather than evaluated as root@machine# or something like that.

Suspect an issue with type of quotes.

Thanks for giving me an idea where to start from :)</description>
		<content:encoded><![CDATA[<p>Interesting stuff&#8230;. looks like what I&#8217;ve been looking for, almost. When I login as root I get the red but the prompt is the string literal rather than evaluated as root@machine# or something like that.</p>
<p>Suspect an issue with type of quotes.</p>
<p>Thanks for giving me an idea where to start from <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
