tcsh
在FreeBSD下,csh默認的提示行是#,是不是東西太少了我們一般習慣這樣root@Gawain[~]#。怎樣呢??
在/etc/profile或是~/.profile中加入PS1='\u@\h[\w]\$'就會變成習慣的哪樣了。
\u- 顯示使用者帳號
\h- 顯示系統的hostname(機器名)
\w- 完整路徑
\$- 以#表示root,以$表示一般使用者
設定完了要重新登錄方能生效
逃出深牢大獄是原動力
在FreeBSD下,csh默認的提示行是#,是不是東西太少了我們一般習慣這樣root@Gawain[~]#。怎樣呢??
在/etc/profile或是~/.profile中加入PS1='\u@\h[\w]\$'就會變成習慣的哪樣了。
\u\h\w\$設定完了要重新登錄方能生效
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.
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>