Bash Completion

I tried loading bash_completion into my bash (3.2.25), it does not work. No messages, etc. I used the following in my .bashrc

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

I also tried using .bash_profile instead, but with the same result. So the problem is why it doesn't work? Any ideas? Tips

+3
source share
2 answers

Simply receiving this file will not exit to the terminal. All he does is define a bunch of functions. After you receive it, you will be able to replenish tabs in svn commands. Enter svn Spaceand press Tabtwice. You should see a list of svn commands.

+6

, , subversion bash_completion .bash_completion bash_completion? ( ) ls -la bash* .bash*?

, , subversion .bash_completion. , :

mv -i bash_completion .bash_completion
0

Source: https://habr.com/ru/post/1743333/


All Articles