<?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>《8个实用而有趣Bash命令提示行》的评论</title>
	<atom:link href="http://coolshell.cn/articles/1399.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coolshell.cn/articles/1399.html</link>
	<description>享受编程和技术所带来的快乐 - http://coolshell.cn</description>
	<lastBuildDate>Fri, 10 Feb 2012 05:00:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：[turn] 8 practical and have fun Bash command prompts line</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-59550</link>
		<dc:creator>[turn] 8 practical and have fun Bash command prompts line</dc:creator>
		<pubDate>Fri, 17 Jun 2011 00:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-59550</guid>
		<description>[...] The original link: http://coolshell.cn/?p=1399 [...]</description>
		<content:encoded><![CDATA[<p>[...] The original link: <a href="http://coolshell.cn/?p=1399" rel="nofollow">http://coolshell.cn/?p=1399</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Myrice&#39;s Blog &#187; 终端提示符的配置</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-8735</link>
		<dc:creator>Myrice&#39;s Blog &#187; 终端提示符的配置</dc:creator>
		<pubDate>Sun, 08 Aug 2010 16:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-8735</guid>
		<description>[...] 从gnome-terminal换成其它也一样, 后来发现这篇文章 &lt;8个实用而有趣Bash命令提示行&gt; #1(原文在此#2)原来是设置PS1变量的问题, 在~.bashrc [...]</description>
		<content:encoded><![CDATA[<p>[...] 从gnome-terminal换成其它也一样, 后来发现这篇文章 &lt;8个实用而有趣Bash命令提示行&gt; #1(原文在此#2)原来是设置PS1变量的问题, 在~.bashrc [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：oppih</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-5037</link>
		<dc:creator>oppih</dc:creator>
		<pubDate>Sun, 14 Feb 2010 04:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-5037</guid>
		<description>视觉效果很好的一段东西，不过我还没弄明白放在.bashrc中的哪一段……

# Prompt String
#
case $TERM in
    xterm *&#124; rxvt *)
            TITLEBAR = ’\[33]0;\ u@ \ h :\ w 07\] ’
            ;;
    *)
            TITLEBAR = &quot; &quot;
            ;;
esac ;
PS1 = &quot; $ { TITLEBAR }\ T \[33[0 m \]\[33[0;33 m \]::\
        \[33[0 m \]\[33[1;30 m \]\[33[0 m \]\
        \[33[0;37 m \]\ u \[33[0 m \]\[33[0;33 m \] @ \
        \[33[0 m \]\[33[0;37 m \]\ h \[33[0 m \]\
        \[33[0;33 m \]::\[33[0 m \]\[33[1;33 m \]\ w \
        \[33[0 m \]\[33[0;33 m \] \[33[0 m \]\
        \[33[0;32 m \]\[33[0 m \]\[33[1;37 m \]\
        \[33[0 m \]\[33[1;37 m \](\[33[0 m \]\
        \[33[0;33 m \]\ $ ( ls -l &#124; grep \ &quot; ^ -\ &quot; &#124; \
        wc -l &#124; tr -d \ &quot; \ &quot; )\[33[0 m \]\
        \[33[1;37 m \] \[33[0 m \]\[33[1;30 m \]\
        \[33[0 m \]\[33[0;37 m \] files \[33[0 m \]\
        \[33[1;37 m \] , \[33[0 m \]\[33[0;33 m \]\
        \ $ ( ls -- si -s &#124; head -1 &#124;\
        awk ’{ print \ $2 } ’) \[33[0 m \]\[33[0;37 m \]\
        total \[33[0 m \]\[33[0;37 m \])\ n \[33[0 m \]\
        \[33[1;37 m \]\[33[0;0 m \] &quot;</description>
		<content:encoded><![CDATA[<p>视觉效果很好的一段东西，不过我还没弄明白放在.bashrc中的哪一段……</p>
<p># Prompt String<br />
#<br />
case $TERM in<br />
    xterm *| rxvt *)<br />
            TITLEBAR = ’\[33]0;\ u@ \ h :\ w 07\] ’<br />
            ;;<br />
    *)<br />
            TITLEBAR = ” ”<br />
            ;;<br />
esac ;<br />
PS1 = ” $ { TITLEBAR }\ T \[33[0 m \]\[33[0;33 m \]::\<br />
        \[33[0 m \]\[33[1;30 m \]\[33[0 m \]\<br />
        \[33[0;37 m \]\ u \[33[0 m \]\[33[0;33 m \] @ \<br />
        \[33[0 m \]\[33[0;37 m \]\ h \[33[0 m \]\<br />
        \[33[0;33 m \]::\[33[0 m \]\[33[1;33 m \]\ w \<br />
        \[33[0 m \]\[33[0;33 m \] \[33[0 m \]\<br />
        \[33[0;32 m \]\[33[0 m \]\[33[1;37 m \]\<br />
        \[33[0 m \]\[33[1;37 m \](\[33[0 m \]\<br />
        \[33[0;33 m \]\ $ ( ls -l | grep \ ” ^ -\ ” | \<br />
        wc -l | tr -d \ ” \ ” )\[33[0 m \]\<br />
        \[33[1;37 m \] \[33[0 m \]\[33[1;30 m \]\<br />
        \[33[0 m \]\[33[0;37 m \] files \[33[0 m \]\<br />
        \[33[1;37 m \] , \[33[0 m \]\[33[0;33 m \]\<br />
        \ $ ( ls &#8212; si -s | head -1 |\<br />
        awk ’{ print \ $2 } ’) \[33[0 m \]\[33[0;37 m \]\<br />
        total \[33[0 m \]\[33[0;37 m \])\ n \[33[0 m \]\<br />
        \[33[1;37 m \]\[33[0;0 m \] “</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jack</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-1280</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Sun, 04 Oct 2009 06:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-1280</guid>
		<description>第二个的echo -ne “33]0;`hostname -s`:`pwd`07″‘好像没什么用？</description>
		<content:encoded><![CDATA[<p>第二个的echo -ne “33]0;`hostname -s`:`pwd`07″‘好像没什么用？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Soli</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-1128</link>
		<dc:creator>Soli</dc:creator>
		<pubDate>Wed, 23 Sep 2009 13:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-1128</guid>
		<description>我用了第一个</description>
		<content:encoded><![CDATA[<p>我用了第一个</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Neo</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-965</link>
		<dc:creator>Neo</dc:creator>
		<pubDate>Sun, 13 Sep 2009 01:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-965</guid>
		<description>这个可能是world press的问题。楼上也有人提到应该pre把代码包含起来。
不过本文提供了原文连接，在文章最后，你可以通过原文连接去找到正确的PS1的代码。:)</description>
		<content:encoded><![CDATA[<p>这个可能是world press的问题。楼上也有人提到应该pre把代码包含起来。<br />
不过本文提供了原文连接，在文章最后，你可以通过原文连接去找到正确的PS1的代码。:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：khb_gl</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-964</link>
		<dc:creator>khb_gl</dc:creator>
		<pubDate>Sun, 13 Sep 2009 01:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-964</guid>
		<description>第八个PS1的第二行 第2，第3个\[是不是多了一个。
我去掉它才可以正常显示。</description>
		<content:encoded><![CDATA[<p>第八个PS1的第二行 第2，第3个\[是不是多了一个。<br />
我去掉它才可以正常显示。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：豆豆</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-944</link>
		<dc:creator>豆豆</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:16:38 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-944</guid>
		<description>第1、2、5个比较有趣，是我喜欢的，呵呵</description>
		<content:encoded><![CDATA[<p>第1、2、5个比较有趣，是我喜欢的，呵呵</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：chris</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-941</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 08 Sep 2009 01:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-941</guid>
		<description>好文章</description>
		<content:encoded><![CDATA[<p>好文章</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bones7456</title>
		<link>http://coolshell.cn/articles/1399.html/comment-page-1#comment-940</link>
		<dc:creator>bones7456</dc:creator>
		<pubDate>Tue, 08 Sep 2009 01:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=1399#comment-940</guid>
		<description>好吧，我来贴一下我用的PS1:
http://li2z.cn/2008/06/13/ps1-2/

另外，文章中的代码最好用&lt;pre&gt;包起来，不然引号都会被WP变成全角的哦。</description>
		<content:encoded><![CDATA[<p>好吧，我来贴一下我用的PS1:<br />
<a href="http://li2z.cn/2008/06/13/ps1-2/" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/li2z.cn/2008/06/13/ps1-2/?referer=');">http://li2z.cn/2008/06/13/ps1-2/</a></p>
<p>另外，文章中的代码最好用&lt;pre&gt;包起来，不然引号都会被WP变成全角的哦。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

