<?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: Crazy POWERFUL Bash Prompt</title>
	<atom:link href="http://www.askapache.com/linux/bash-power-prompt.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/linux/bash-power-prompt.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Thu, 16 May 2013 00:37:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Julien Palard</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-14679</link>
		<dc:creator>Julien Palard</dc:creator>
		<pubDate>Mon, 11 Mar 2013 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-14679</guid>
		<description><![CDATA[For years I used :

PS1=&#039; &#039;

A space, only to know that the previous command ended (as while the previous command is running, cursor is at column 0).

But today I use u@H$ cause I have &gt; 20 servers, I need to know at least the hostname ^-^]]></description>
		<content:encoded><![CDATA[<p>For years I used :</p>
<p>PS1=' '</p>
<p>A space, only to know that the previous command ended (as while the previous command is running, cursor is at column 0).</p>
<p>But today I use u@H$ cause I have &gt; 20 servers, I need to know at least the hostname ^-^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christopher barry</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3135</link>
		<dc:creator>christopher barry</dc:creator>
		<pubDate>Sat, 08 Sep 2012 00:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3135</guid>
		<description><![CDATA[very nice and inventive.

how about adding some themes to the bash-color-tools?

-C]]></description>
		<content:encoded><![CDATA[<p>very nice and inventive.</p>
<p>how about adding some themes to the bash-color-tools?</p>
<p>-C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khashayar</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3134</link>
		<dc:creator>Khashayar</dc:creator>
		<pubDate>Wed, 04 Apr 2012 17:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3134</guid>
		<description><![CDATA[hi ,

I&#039;m newbie, i was wonder after each time reboot the prompt will be the same as default one! is there any way to make permanently?
appreciate your help

Thanks]]></description>
		<content:encoded><![CDATA[<p>hi ,</p>
<p>I'm newbie, i was wonder after each time reboot the prompt will be the same as default one! is there any way to make permanently?<br />
appreciate your help</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Grangaard</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3133</link>
		<dc:creator>Andrew Grangaard</dc:creator>
		<pubDate>Fri, 08 Jul 2011 16:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3133</guid>
		<description><![CDATA[&lt;p&gt;I like what you&#039;ve done here.&lt;/p&gt;

&lt;p&gt;If you&#039;re doing that much with your prompt, you may want to consider switching to zsh as your shell.&lt;/p&gt;

If you were in zsh, you could have:
&lt;ul&gt;
&lt;li&gt; *two* awesome prompts, one on the left and one on the right. (The &lt;code&gt;RPROMPT&lt;/code&gt; automatically disappears if you type into that area.) &lt;/li&gt;
&lt;li&gt;And built-ins to show your VCS info (git/svn/... etc).  &lt;/li&gt;
&lt;li&gt;better command-line completion&lt;/li&gt;
&lt;li&gt;And a flying car.(++)&lt;/li&gt;
&lt;/ul&gt;

&lt;em&gt;++ flying car may require some assembly.&lt;/em&gt;]]></description>
		<content:encoded><![CDATA[<p>I like what you've done here.</p>
<p>If you're doing that much with your prompt, you may want to consider switching to zsh as your shell.</p>
<p>If you were in zsh, you could have:</p>
<ul>
<li> *two* awesome prompts, one on the left and one on the right. (The <code>RPROMPT</code> automatically disappears if you type into that area.) </li>
<li>And built-ins to show your VCS info (git/svn/... etc).  </li>
<li>better command-line completion</li>
<li>And a flying car.(++)</li>
</ul>
<p><em>++ flying car may require some assembly.</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tommy</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3132</link>
		<dc:creator>tommy</dc:creator>
		<pubDate>Wed, 08 Dec 2010 18:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3132</guid>
		<description><![CDATA[really awesome and colourful]]></description>
		<content:encoded><![CDATA[<p>really awesome and colourful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deesto</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3131</link>
		<dc:creator>deesto</dc:creator>
		<pubDate>Tue, 15 Jun 2010 14:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3131</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@AskApache&lt;/strong&gt;&lt;/p&gt;
thx!  OK, after looking into this, after changing &#039;&lt;code&gt;sed -nu&lt;/code&gt;&#039; to &#039;&lt;code&gt;sed -n&lt;/code&gt;&#039;, what&#039;s actually happening is that there _is_ no &lt;code&gt;/proc&lt;/code&gt; system in Darwin, so the &lt;code&gt;eval&lt;/code&gt; command either hangs or throws an error.
Sucks for us Mac users!]]></description>
		<content:encoded><![CDATA[<p><strong>@AskApache</strong></p>
<p>thx!  OK, after looking into this, after changing '<code>sed -nu</code>' to '<code>sed -n</code>', what's actually happening is that there _is_ no <code>/proc</code> system in Darwin, so the <code>eval</code> command either hangs or throws an error.<br />
Sucks for us Mac users!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3130</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Sat, 12 Jun 2010 07:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3130</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@deesto&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Ya some versions (mostly older) of sed don&#039;t support the -u unbuffered option, I&#039;ve since removed it since it&#039;s a bit overkill anyway and multi-platform robustness is always the goal with bash.   It would be helpful if you explained more about what you mean by &#039;hanging&#039; without the -u option.  It&#039;s probably related to something other than the u option, a &lt;code&gt;$ set +xv&lt;/code&gt; will tell us why (please share what you find).&lt;/p&gt;
&lt;p&gt;Thanks for the feedback bro, I use mac&#039;s all the time too &lt;em&gt;(though I greatly prefer nix.)&lt;/em&gt;&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p><strong>@deesto</strong></p>
<p>Ya some versions (mostly older) of sed don't support the -u unbuffered option, I've since removed it since it's a bit overkill anyway and multi-platform robustness is always the goal with bash.   It would be helpful if you explained more about what you mean by 'hanging' without the -u option.  It's probably related to something other than the u option, a <code>$ set +xv</code> will tell us why (please share what you find).</p>
<p>Thanks for the feedback bro, I use mac's all the time too <em>(though I greatly prefer nix.)</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ManiquÃ­</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3129</link>
		<dc:creator>ManiquÃ­</dc:creator>
		<pubDate>Tue, 08 Jun 2010 02:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3129</guid>
		<description><![CDATA[Hi. I know you insist on &quot;figure out how this works&quot;, but bash code is all gibberish to me.
On .bash_rc, I&#039;ve added the &quot;Extreme power prompt&quot; code from above. Now, my prompt looks like this:

[2873:2872 0:73] 01:50:46 Tue Jun 08 [user@host:/dev/pts/0 +1] ~
(1:73)$

Please, could you care to explain some chunks of the output?

[2873:2872 0:73] &lt;- what are this?

[user@host:/dev/pts/0 +1]  &lt;- what&#039;s the +1 here?

(1:73)$  &lt;- I understand the 73 here is the number of commands I&#039;ve in the history. What about the 1? And what&#039;s the practical use of this numbers?

Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Hi. I know you insist on "figure out how this works", but bash code is all gibberish to me.<br />
On .bash_rc, I've added the "Extreme power prompt" code from above. Now, my prompt looks like this:</p>
<p>[2873:2872 0:73] 01:50:46 Tue Jun 08 [user@host:/dev/pts/0 +1] ~<br />
(1:73)$</p>
<p>Please, could you care to explain some chunks of the output?</p>
<p>[2873:2872 0:73] &lt;- what are this?</p>
<p>[user@host:/dev/pts/0 +1]  &lt;- what&#039;s the +1 here?</p>
<p>(1:73)$  &lt;- I understand the 73 here is the number of commands I&#039;ve in the history. What about the 1? And what&#039;s the practical use of this numbers?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deesto</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3128</link>
		<dc:creator>deesto</dc:creator>
		<pubDate>Wed, 26 May 2010 20:16:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3128</guid>
		<description><![CDATA[thanks for the updated stuff ... but the &#039;sed -nu&#039; bit breaks in Darwin bash (OS X), and removing the &#039;u&#039; just hangs the prompt.]]></description>
		<content:encoded><![CDATA[<p>thanks for the updated stuff ... but the 'sed -nu' bit breaks in Darwin bash (OS X), and removing the 'u' just hangs the prompt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>http://www.askapache.com/linux/bash-power-prompt.html#comment-3127</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Wed, 26 May 2010 09:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=4069#comment-3127</guid>
		<description><![CDATA[Check out this improvement:  it&#039;s much faster because it only runs on certain seconds.  And it&#039;s just being evald!  Very cool.

&lt;pre&gt;        # now this is where things gets really farout, figure out how this works and you&#039;ll learn alot
        export AA_P=&quot;export PVE=&quot;\033[m\033[38;5;2m&quot;$(( `sed -nu &quot;s/MemFree:[\t ]\+\([0-9]\+\) kB/\1/p&quot; /proc/meminfo` / 1024 ))&quot;\033[38;5;22m/&quot;$((`sed -nu &quot;s/MemTotal:[\t ]\+\([0-9]\+\) kB/\1/p&quot; /proc/meminfo`/ 1024 ))MB&quot;\t\033[m\033[38;5;55m$(&lt; /proc/loadavg)\033[m&quot;;echo -en &quot;$PVE&quot;&quot;
        eval &quot;$AA_P&quot; &amp;&amp; export PROMPT_COMMAND=&#039;history -a;(($SECONDS % 10==0 ))&amp;&amp;eval &quot;$AA_P&quot;;echo -en &quot;$PVE&quot;;&#039; &amp;&amp; eval &quot;$AA_P&quot;;
&#160;
        # sets up the prompt
        PS1=&#039;[e[mne[1;30m][$$:$PPID j:![e[1;30m]][e[0;36m] T d [e[1;30m][[e[1;34m]u@H[e[1;30m]:[e[0;37m]${SSH_TTY} [e[0;32m]+${SHLVL}[e[1;30m]] [e[1;37m]w[e[0;37m] n($SHLVL:!)$ &#039;;&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Check out this improvement:  it's much faster because it only runs on certain seconds.  And it's just being evald!  Very cool.</p>
<pre>        # now this is where things gets really farout, figure out how this works and you'll learn alot
        export AA_P="export PVE="\033[m\033[38;5;2m"$(( `sed -nu "s/MemFree:[\t ]\+\([0-9]\+\) kB/\1/p" /proc/meminfo` / 1024 ))"\033[38;5;22m/"$((`sed -nu "s/MemTotal:[\t ]\+\([0-9]\+\) kB/\1/p" /proc/meminfo`/ 1024 ))MB"\t\033[m\033[38;5;55m$(&lt; /proc/loadavg)\033[m";echo -en "$PVE""
        eval "$AA_P" &amp;&amp; export PROMPT_COMMAND='history -a;(($SECONDS % 10==0 ))&amp;&amp;eval "$AA_P";echo -en "$PVE";' &amp;&amp; eval "$AA_P";
&nbsp;
        # sets up the prompt
        PS1='[e[mne[1;30m][$$:$PPID j:![e[1;30m]][e[0;36m] T d [e[1;30m][[e[1;34m]u@H[e[1;30m]:[e[0;37m]${SSH_TTY} [e[0;32m]+${SHLVL}[e[1;30m]] [e[1;37m]w[e[0;37m] n($SHLVL:!)$ ';</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
