BSD 修改登录shell
一.修改.cshrc 配置文件,BSD默认csh
ee /root/.cshrc
if ($?prompt) then
# An interactive shell -- set some stuff up
#set prompt = "`/bin/hostname -s`# " #默认csh写法
set prompt = "%B%n@%m[%/]" #bash写法
#写法详解: %B=粗体字 %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
保存退出
二.退出shell重新登录测试
root@cheng[/
阅读(1746) | 评论(0) | 转发(0) |