- 论坛徽章:
- 0
|
中文:语句加入 /etc/csh.cshrc
提示:在~/.cshrc里
if ($?prompt) then
set prompt = "%B%n@%~%b: "
" Starts the prompt string.
%B Turns on bold.
%m group name
%n Shows the login name in the prompt.
@ I use this as a separator to make my prompt more visually appealing.
%~ Shows the current working directory. It results in a shorter prompt than %/, as my home directory is shortened from /usr/home/myusername to ~
%b Turns off bold.
: Again, this is an extra character I use to separate my prompt from the cursor.
" Ends the prompt string.
提示符主要是在 set prompt 里用好 %m 和 %n, 如果lz装了game 可以在 fortune 这个小游戏提供的tips里看到许多bsd的提示。
另外,bsd hacks 这本书推荐。
[ 本帖最后由 995636 于 2007-1-7 15:10 编辑 ] |
|