<?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: Best Bash Prompt</title>
	<atom:link href="http://blog.ubrio.us/nix/best-bash-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ubrio.us/nix/best-bash-prompt/</link>
	<description>An Ordinary Web Developer's Blog</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:55:11 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: desa78</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-121385</link>
		<dc:creator>desa78</dc:creator>
		<pubDate>Tue, 04 May 2010 09:53:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-121385</guid>
		<description>improved version:

export PROMPT_COMMAND=&#039;PS1=&quot;\[33[0;33m\][\!]\`if [[ \$? = &quot;0&quot; ]]; then echo &quot;\\[\33[32m\\]&quot;; else echo &quot;\\[\33[31m\\]&quot;; fi\`[\u.\h: $(if [[ `pwd&#124;wc -c&#124;tr -d &quot; &quot;` &gt; 18 ]]; then echo &quot;\\W&quot;; else echo &quot;\\w&quot;; fi)]\$\[33[0m\] &quot;; echo -ne &quot;33]0;`hostname -s`:`pwd`07&quot;&#039;</description>
		<content:encoded><![CDATA[<p>improved version:</p>
<p>export PROMPT_COMMAND=&#8217;PS1=&#8221;\[33[0;33m\][\!]\`if [[ \$? = "0" ]]; then echo &#8220;\\[\33[32m\\]&#8220;; else echo &#8220;\\[\33[31m\\]&#8220;; fi\`[\u.\h: $(if [[ `pwd|wc -c|tr -d " "` &gt; 18 ]]; then echo &#8220;\\W&#8221;; else echo &#8220;\\w&#8221;; fi)]\$\[33[0m\] &#8220;; echo -ne &#8220;33]0;`hostname -s`:`pwd`07&#8243;&#8216;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desa78</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-121383</link>
		<dc:creator>desa78</dc:creator>
		<pubDate>Tue, 04 May 2010 09:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-121383</guid>
		<description>I realized that the prompt will not work for directory names that contain parentheses. Is there any solution?</description>
		<content:encoded><![CDATA[<p>I realized that the prompt will not work for directory names that contain parentheses. Is there any solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desa78</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-121359</link>
		<dc:creator>desa78</dc:creator>
		<pubDate>Mon, 03 May 2010 20:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-121359</guid>
		<description>Unfortunately your prompt cannot handle directory names that contain a parenthesis... any solution?</description>
		<content:encoded><![CDATA[<p>Unfortunately your prompt cannot handle directory names that contain a parenthesis&#8230; any solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nasko</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-114423</link>
		<dc:creator>Nasko</dc:creator>
		<pubDate>Mon, 27 Jul 2009 10:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-114423</guid>
		<description>function elite
{

local GRAY=&quot;\[33[1;30m\]&quot;
local LIGHT_GRAY=&quot;\[33[0;37m\]&quot;
local CYAN=&quot;\[33[0;36m\]&quot;
local LIGHT_CYAN=&quot;\[33[1;36m\]&quot;
local YELLOW=&quot;\[33[1;33m\]&quot;
local NO_COLOUR=&quot;\[33[0m\]&quot;

case $TERM in
    xterm*&#124;rxvt*)
        local TITLEBAR=&#039;\[33]0;\u@\h:\w07\]&#039;
        ;;
    *)
        local TITLEBAR=&quot;&quot;
        ;;
esac

local temp=$(tty)
local GRAD1=${temp:5}
PS1=&quot;$TITLEBAR\
$GRAY-$CYAN-$LIGHT_CYAN(\
$CYAN\u$GRAY@$CYAN\h\
$LIGHT_CYAN)$CYAN-$LIGHT_CYAN(\
$CYAN\#$GRAY/$CYAN$GRAD1\
$LIGHT_CYAN)$CYAN-$LIGHT_CYAN(\
$CYAN\$(date +%H)$YELLOW:$CYAN\$(date +%M)$YELLOW:$CYAN\$(date +%S)$GRAY/$CYAN\
$(date +%d-%b-%y)\
$LIGHT_CYAN)$CYAN-$GRAY-\
$LIGHT_GRAY\n\
$GRAY-$CYAN-$LIGHT_CYAN(\
$CYAN\$$GRAY:$CYAN\w\
$LIGHT_CYAN)$CYAN-$GRAY-$LIGHT_GRAY &quot;
PS2=&quot;$LIGHT_CYAN-$CYAN-$GRAY-$NO_COLOUR &quot;
}
elite</description>
		<content:encoded><![CDATA[<p>function elite<br />
{</p>
<p>local GRAY=&#8221;\[33[1;30m\]&#8221;<br />
local LIGHT_GRAY=&#8221;\[33[0;37m\]&#8221;<br />
local CYAN=&#8221;\[33[0;36m\]&#8221;<br />
local LIGHT_CYAN=&#8221;\[33[1;36m\]&#8221;<br />
local YELLOW=&#8221;\[33[1;33m\]&#8221;<br />
local NO_COLOUR=&#8221;\[33[0m\]&#8221;</p>
<p>case $TERM in<br />
    xterm*|rxvt*)<br />
        local TITLEBAR=&#8217;\[33]0;\u@\h:\w07\]&#8217;<br />
        ;;<br />
    *)<br />
        local TITLEBAR=&#8221;"<br />
        ;;<br />
esac</p>
<p>local temp=$(tty)<br />
local GRAD1=${temp:5}<br />
PS1=&#8221;$TITLEBAR\<br />
$GRAY-$CYAN-$LIGHT_CYAN(\<br />
$CYAN\u$GRAY@$CYAN\h\<br />
$LIGHT_CYAN)$CYAN-$LIGHT_CYAN(\<br />
$CYAN\#$GRAY/$CYAN$GRAD1\<br />
$LIGHT_CYAN)$CYAN-$LIGHT_CYAN(\<br />
$CYAN\$(date +%H)$YELLOW:$CYAN\$(date +%M)$YELLOW:$CYAN\$(date +%S)$GRAY/$CYAN\<br />
$(date +%d-%b-%y)\<br />
$LIGHT_CYAN)$CYAN-$GRAY-\<br />
$LIGHT_GRAY\n\<br />
$GRAY-$CYAN-$LIGHT_CYAN(\<br />
$CYAN\$$GRAY:$CYAN\w\<br />
$LIGHT_CYAN)$CYAN-$GRAY-$LIGHT_GRAY &#8221;<br />
PS2=&#8221;$LIGHT_CYAN-$CYAN-$GRAY-$NO_COLOUR &#8221;<br />
}<br />
elite</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Talon</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-112140</link>
		<dc:creator>Talon</dc:creator>
		<pubDate>Wed, 24 Jun 2009 04:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-112140</guid>
		<description>That person above is a complete newb if he doesnt realise that files chmoded to 0000 show as white. ! :) :/ :/</description>
		<content:encoded><![CDATA[<p>That person above is a complete newb if he doesnt realise that files chmoded to 0000 show as white. ! <img src='http://blog.ubrio.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  :/ :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jadu Saikia</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-96920</link>
		<dc:creator>Jadu Saikia</dc:creator>
		<pubDate>Sun, 28 Dec 2008 07:02:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-96920</guid>
		<description>cool play with PS1, nice info, good tip. Thanks.

// jadu</description>
		<content:encoded><![CDATA[<p>cool play with PS1, nice info, good tip. Thanks.</p>
<p>// jadu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: being (no)body &#187; m3talink for April 9th</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-59113</link>
		<dc:creator>being (no)body &#187; m3talink for April 9th</dc:creator>
		<pubDate>Thu, 10 Apr 2008 01:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-59113</guid>
		<description>[...] Blog.ubrious &#187; Blog Archive &#187; Best Bash Prompt is [...]</description>
		<content:encoded><![CDATA[<p>[...] Blog.ubrious &raquo; Blog Archive &raquo; Best Bash Prompt is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robbie</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-54271</link>
		<dc:creator>Robbie</dc:creator>
		<pubDate>Mon, 03 Mar 2008 09:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-54271</guid>
		<description>very cool ;) , i would like to change it a bit though and swop it around so that the command numbers get changed [001]=green for good , [002]red for bad. do you know how i could do that? i still like my prompt as&quot; [user@comp] ~ $ &quot; although i&#039;ve now added &quot; [829][user@comp] ~ $ &quot; nice work though ;) I&#039;ve been inspired :)</description>
		<content:encoded><![CDATA[<p>very cool <img src='http://blog.ubrio.us/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  , i would like to change it a bit though and swop it around so that the command numbers get changed [001]=green for good , [002]red for bad. do you know how i could do that? i still like my prompt as&#8221; [user@comp] ~ $ &#8221; although i&#8217;ve now added &#8221; [829][user@comp] ~ $ &#8221; nice work though <img src='http://blog.ubrio.us/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I&#8217;ve been inspired <img src='http://blog.ubrio.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pronto! Prompt me, Bash! &#171; sysblogd</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-38073</link>
		<dc:creator>Pronto! Prompt me, Bash! &#171; sysblogd</dc:creator>
		<pubDate>Mon, 26 Nov 2007 22:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-38073</guid>
		<description>[...] for a promt command for bash to trimm long pwds (current working directory) I stumbled uppon &#8220;Blog.ubrious&#8220;. After a little hacking I adopted it to work for linux bash. It also cuts off leading [...]</description>
		<content:encoded><![CDATA[<p>[...] for a promt command for bash to trimm long pwds (current working directory) I stumbled uppon &#8220;Blog.ubrious&#8220;. After a little hacking I adopted it to work for linux bash. It also cuts off leading [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog.ubrious &#187; Blog Archive &#187; OSX Terminal Niceties for Remote Servers</title>
		<link>http://blog.ubrio.us/nix/best-bash-prompt/comment-page-1/#comment-36375</link>
		<dc:creator>Blog.ubrious &#187; Blog Archive &#187; OSX Terminal Niceties for Remote Servers</dc:creator>
		<pubDate>Thu, 15 Nov 2007 14:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ubrio.us/osx/bash-prompt-madness/#comment-36375</guid>
		<description>[...] Updated: Bash Prompt Madness [...]</description>
		<content:encoded><![CDATA[<p>[...] Updated: Bash Prompt Madness [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

