把
# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi改成
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi如果要考虑移植到别的发行版里面可能有些麻烦,我在RHEL5上面测试了不成功,错误提示找不到
./etc/bash_completion
哪位仁兄做到了给说阿,以后能省事不少。
