Chinaunix首页 | 论坛 | 博客
  • 博客访问: 97610
  • 博文数量: 64
  • 博客积分: 2570
  • 博客等级: 少校
  • 技术积分: 605
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-24 11:00
文章分类

全部博文(64)

文章存档

2011年(1)

2010年(25)

2009年(38)

我的朋友

分类: LINUX

2010-06-11 15:06:29


Bash sources /etc/profile, then either ~/.bash_profile, ~/.bash_login, or
~/.profile, in that order. In order for ~/.bashrc to be sourced, you need
to do it from one of these files with a line like this:

[ -f ~/.bashrc ] && . ~/.bashrc

That's for a login shell anyway. See the bash man page or info pages for more.


Then I create a new file .bash_profile in my home folder, then add above line in it, it works now.
阅读(497) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~