Tuesday, April 28, 2009

Ubuntu enable bash completion

vim /etc/bash.bashrc


# 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
哪位仁兄做到了给说阿,以后能省事不少。
Copyright © 2006 - 2009 iCNPunk.BlogSpot.COM All rights reserved By ZerOnenOreZ & Blogger
Template Designed By iCNPunk Fixed for IE7