<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?</link>
<title><![CDATA[跟着ArthurXF学FreeBSD1——在freebsd下面tcsh和bash的常用配置文件]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[FreeBSD]]></category>
<pubDate>Wed, 17 Jan 2007 10:39:04 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?</guid> 
<description>
<![CDATA[ 
	freebsd下面提供的shell默认是csh，用户体验很不好。很多人更加习惯linux下的bash可以使用下面的方式更换shell。<br/><br/>1. 更改用户的shell为bash：<br/>通过chsh命令来更改。注意，如果通过ports方式安装的bash，其目录在/usr/local/bin/bash<br/><br/>安装bash: <br/>cd /usr/ports/shell/bash2 <br/>make<br/>make install clean<br/><br/>改用bash: chsh -s /usr/local/bin/bash<br/><br/>复原csh：chsh -s /bin/csh<br/><br/>如果需要csh正常支持中文显示等，就需要修改配置文件了。现提供两种方式下的配置文件：<br/>1.tcsh配置文件<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/># 修改/.cshrc或者当前用户目录下的.cshrc文件为下面的。<br/>alias h &nbsp; &nbsp; &nbsp; &nbsp; history 25<br/>alias j &nbsp; &nbsp; &nbsp; &nbsp; jobs -l<br/>alias la &nbsp; &nbsp; &nbsp; &nbsp;ls -a<br/>alias lf &nbsp; &nbsp; &nbsp; &nbsp;ls -FA<br/>alias ll &nbsp; &nbsp; &nbsp; &nbsp;ls -lA<br/><br/># A righteous umask<br/>umask 22<br/><br/>set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin)<br/><br/>#让 ls 命令显示目录的时候带 / 斜杠区分普通文件<br/>alias ls ls -FG<br/><br/>set prompt='%B%n%b@%U%m%u %S%/%s&#92; %# '<br/>set prompt2="%R?"<br/>set prompt3="CORRECT> %B%R%b (y&#124;n&#124;e)?"<br/>#设置命令补全<br/>set autolist<br/>#合并多连接状态的历史<br/>set history=2048<br/>set savehist = 2048 merge<br/><br/># 让中文显示在终端上正确显示<br/>setenv LC_ALL zh_CN.eucCN<br/>setenv LANG &nbsp;zh_CN.eucCN<br/>setenv LC_CTYPE zh_CN.eucCN<br/><br/><br/>setenv &nbsp;EDITOR &nbsp;vi<br/>setenv &nbsp;PAGER &nbsp; more<br/>setenv &nbsp;BLOCKSIZE &nbsp; &nbsp; &nbsp; K<br/><br/>if ($?prompt) then<br/> &nbsp; &nbsp; &nbsp; &nbsp;# An interactive shell -- set some stuff up<br/> &nbsp; &nbsp; &nbsp; &nbsp;#set prompt = "`/bin/hostname -s`# "<br/> &nbsp; &nbsp; &nbsp; &nbsp;set filec<br/> &nbsp; &nbsp; &nbsp; &nbsp;#set history = 100<br/> &nbsp; &nbsp; &nbsp; &nbsp;#set savehist = 100<br/> &nbsp; &nbsp; &nbsp; &nbsp;set mail = (/var/mail/$USER)<br/> &nbsp; &nbsp; &nbsp; &nbsp;if ( $?tcsh ) then<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bindkey "^W" backward-delete-word<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bindkey -k up history-search-backward<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bindkey -k down history-search-forward<br/> &nbsp; &nbsp; &nbsp; &nbsp;endif<br/>endif</div></div><br/><br/>2Bash配置文件<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>#/etc/profile ~/.profile<br/>alias ll='ls -FAl' <br/><br/>LANG=en_US.ISO8859-1<br/>LC_ALL=en_US.ISO8859-1<br/><br/># 提示符： [username@hostname /path/to/current/dir/] <br/>PS1="[&#92;u@&#92;h &#92;w]&#92;&#92;$ "<br/><br/>export LANG LC_ALL PS1<br/></div></div><br/><br/><br/>现在ArthurXF本人正在搞PHP等技术培训，如果想学习的人可以跟我联系。另外培训的招生简章在这个网址，想了解的可以去看看。加我QQ：29011218交流也可。<br/><a href="http://www.bizeway.net/read.php/285.htm" target="_blank">PHP培训招生简章</a><br/>Tags - <a href="tag.php?tag=freebsd" rel="tag">freebsd</a> , <a href="tag.php?tag=tcsh" rel="tag">tcsh</a> , <a href="tag.php?tag=bash" rel="tag">bash</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] 跟着ArthurXF学FreeBSD1——在freebsd下面tcsh和bash的常用配置文件]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>