Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1344186
  • 博文数量: 145
  • 博客积分: 1440
  • 博客等级: 少尉
  • 技术积分: 2986
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 23:47
个人简介

我一直在走,至少还有条路,也好于无路可走…

文章分类

全部博文(145)

文章存档

2023年(1)

2017年(2)

2016年(5)

2015年(13)

2014年(13)

2013年(70)

2012年(41)

分类: BSD

2013-09-27 22:10:27

                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[/
阅读(1676) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~