vi .cshrc
QUOTE:......
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
#set prompt = "`/bin/hostname -s`# "
set prompt = "%U%n@%m[%/]# "
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif解讀:
更改操作界面的提示(光標前面的提示)。%U表示下劃線,%n表示用戶名,%m表示主機名,%/ 表示當前目錄的完整路徑。