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) |