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
哪位仁兄做到了给说阿,以后能省事不少。

1 Comments:

Anonymous said...

I like the helpful information you provide in your articles.
I'll bookmark your weblog and check again here regularly.
I'm quite certain I will learn a lot of new stuff right here!
Good luck for the next!

Visit my weblog - meal plans for weight loss

Post a Comment

Copyright © 2006 - 2009 iCNPunk.BlogSpot.COM All rights reserved By ZerOnenOreZ & Blogger
Template Designed By iCNPunk Fixed for IE7