May 5, 2006

tcsh

Posted under: Misc

在FreeBSD下,csh默認的提示行是#,是不是東西太少了我們一般習慣這樣root@Gawain[~]#。怎樣呢??

/etc/profile或是~/.profile中加入PS1='\u@\h[\w]\$'就會變成習慣的哪樣了。

\u
顯示使用者帳號
\h
顯示系統的hostname(機器名)
\w
完整路徑
\$
以#表示root,以$表示一般使用者

設定完了要重新登錄方能生效

delicious's logoPost This Page

Comments »

The URI to TrackBack this entry is: http://gawain.blogsome.com/2006/05/05/tcsh/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


My coComments

sideBar

Search

May 2006
M T W T F S S
« Apr   Jun »
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

Archives

Subcription

  • Add to Google

Most post

Meta

Who am I?

photo of gawain

Gawain Bai

Contact me

gmail address

MSN address

Blogroll

Douban