<?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: Adding colour to your mysql prompt</title>
	<atom:link href="http://blogs.linux.ie/kenguest/2011/04/20/adding-colour-to-your-mysql-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.linux.ie/kenguest/2011/04/20/adding-colour-to-your-mysql-prompt/</link>
	<description>php, linux, pear, mysql etc etc</description>
	<lastBuildDate>Fri, 21 Oct 2011 21:08:12 +0100</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: kenguest</title>
		<link>http://blogs.linux.ie/kenguest/2011/04/20/adding-colour-to-your-mysql-prompt/comment-page-1/#comment-324684</link>
		<dc:creator>kenguest</dc:creator>
		<pubDate>Wed, 20 Apr 2011 20:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.linux.ie/kenguest/?p=359#comment-324684</guid>
		<description>Yes, I have; more efficiently it should be:
prompt=’\U (\d) &gt; ‘

Just for the giggle factor, I&#039;m defining it in my .bashrc now though:

if [ -x /usr/bin/rlwrap ]; then
    alias mysql=&quot;/usr/bin/rlwrap -a --prompt-colour=&#039;1;33&#039; /usr/bin/mysql&quot;
    export MYSQL_PS1=&quot;\U [`hostname`] (\d) &gt; &quot;
else
    export MYSQL_PS1=&#039;\u@\h (\d) &gt; &#039;
fi


Due to running a lower version of rlwrap, I&#039;ve had to define the prompt colour differently.</description>
		<content:encoded><![CDATA[<p>Yes, I have; more efficiently it should be:<br />
prompt=’\U (\d) > ‘</p>
<p>Just for the giggle factor, I&#8217;m defining it in my .bashrc now though:</p>
<p>if [ -x /usr/bin/rlwrap ]; then<br />
    alias mysql=&#8221;/usr/bin/rlwrap -a &#8211;prompt-colour=&#8217;1;33&#8242; /usr/bin/mysql&#8221;<br />
    export MYSQL_PS1=&#8221;\U [`hostname`] (\d) > &#8221;<br />
else<br />
    export MYSQL_PS1=&#8217;\u@\h (\d) > &#8216;<br />
fi</p>
<p>Due to running a lower version of rlwrap, I&#8217;ve had to define the prompt colour differently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Maclean</title>
		<link>http://blogs.linux.ie/kenguest/2011/04/20/adding-colour-to-your-mysql-prompt/comment-page-1/#comment-324642</link>
		<dc:creator>Michael Maclean</dc:creator>
		<pubDate>Wed, 20 Apr 2011 13:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.linux.ie/kenguest/?p=359#comment-324642</guid>
		<description>Very neat! Though, in the prompt specification for mysql, do you have the \h and \u the wrong way around?</description>
		<content:encoded><![CDATA[<p>Very neat! Though, in the prompt specification for mysql, do you have the \h and \u the wrong way around?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
