<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Becomin' Charles &#187; man</title>
	<atom:link href="http://sexywp.com/tags/man/feed" rel="self" type="application/rss+xml" />
	<link>http://sexywp.com</link>
	<description>Building another myself~~</description>
	<lastBuildDate>Thu, 29 Jul 2010 15:10:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://sexywp.com/cc/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://sexywp.com/cc/wp-content/plugins/wp-postviews-plus/postviews_plus.php',data:'todowppvp=add&type=tag&id=158_1',cache:false,dataType:'script'});
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>显示彩色的manpages</title>
		<link>http://sexywp.com/show-colorful-manpages.htm</link>
		<comments>http://sexywp.com/show-colorful-manpages.htm#comments</comments>
		<pubDate>Sat, 06 Feb 2010 14:35:16 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[man]]></category>
		<category><![CDATA[manpages]]></category>
		<category><![CDATA[usage]]></category>

		<guid isPermaLink="false">http://sexywp.com/?p=360</guid>
		<description><![CDATA[man是Linux下最最常用的命令之一，用来显示某个命令的手册。

一般在命令行下，manpages通过粗体和下划线来标记关键信息，有多种方法来使man命令显示彩色的manpages。

man是调用less来显示manpages的，可以更换这个程序，使用most来显示，这是一个方法。但是长期以来使用less，已经习惯，most又有一套操作方法，后来我又发现了一种方案，非常简单，只要通过在bashrc中设定环境变量，就可以高亮彩显manpages，非常方便。

<span class="readmore"><a href="http://sexywp.com/show-colorful-manpages.htm title="显示彩色的manpages>Keep Reading --- 267 words totally</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://sexywp.com/tags/man" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with man">man</a>是<a href="http://sexywp.com/tags/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Linux">Linux</a>下最最常用的命令之一，用来显示某个命令的手册。</p>
<p>一般在命令行下，<a href="http://sexywp.com/tags/manpages" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with manpages">manpages</a>通过粗体和下划线来标记关键信息，有多种方法来使<a href="http://sexywp.com/tags/man" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with man">man</a>命令显示彩色的<a href="http://sexywp.com/tags/manpages" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with manpages">manpages</a>。</p>
<p><a href="http://sexywp.com/tags/man" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with man">man</a>是调用less来显示<a href="http://sexywp.com/tags/manpages" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with manpages">manpages</a>的，可以更换这个程序，使用most来显示，这是一个方法。但是长期以来使用less，已经习惯，most又有一套操作方法，后来我又发现了一种方案，非常简单，只要通过在bashrc中设定环境变量，就可以高亮彩显<a href="http://sexywp.com/tags/manpages" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with manpages">manpages</a>，非常方便。</p>
<p>设定方法如下，在.bashrc末尾添加如下几行：<br />
<code><br />
export LESS_TERMCAP_mb=$'\E[01;31m'<br />
export LESS_TERMCAP_md=$'\E[01;31m'<br />
export LESS_TERMCAP_me=$'\E[0m'<br />
export LESS_TERMCAP_se=$'\E[0m'<br />
export LESS_TERMCAP_so=$'\E[01;44;33m'<br />
export LESS_TERMCAP_ue=$'\E[0m'<br />
export LESS_TERMCAP_us=$'\E[01;32m'<br />
</code></p>
<p>如此，即可以为<a href="http://sexywp.com/tags/manpages" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with manpages">manpages</a>添加红绿两色，虽然不多，但是远好过了单调的黑白页面。</p>

	标签：<a href="http://sexywp.com/tags/color" title="color" rel="tag nofollow">color</a>, <a href="http://sexywp.com/tags/linux" title="Linux" rel="tag nofollow">Linux</a>, <a href="http://sexywp.com/tags/man" title="man" rel="tag nofollow">man</a>, <a href="http://sexywp.com/tags/manpages" title="manpages" rel="tag nofollow">manpages</a>, <a href="http://sexywp.com/tags/usage" title="usage" rel="tag nofollow">usage</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/show-colorful-manpages.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
