문제

I've tried to load bash_completion in my bash (3.2.25), it does not work. No message etc. I've used the following in my .bashrc

if [ -f ~/.bash_completion ]; then
  . ~/.bash_completion
fi

I also tried to use .bash_profile instead, but with the same result. So the problem is why does it not work? Any idea? Hints?

도움이 되었습니까?

해결책

Simply sourcing that file will produce no output to the terminal. All it does is define a bunch of functions. Once you've sourced it, you should be able to do tab completions on svn commands. Type svn Spaceand press Tab twice. You should see a list of svn commands.

다른 팁

So this may seem like a stupid question, but did you put the subversion bash_completion into a file called .bash_completion or into a file called bash_completion ? (Note the initial dot) What does ls -la bash* .bash* say?

For the snippet above to work, you need the subversion file to be in .bash_completion. If it isn't, do:

mv -i bash_completion .bash_completion
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top