View previous topic :: View next topic |
Author |
Message |
bienchen Apprentice
Joined: 14 Sep 2004 Posts: 261 Location: Hamburg, Germany
|
Posted: Sat Jul 04, 2009 7:05 pm Post subject: [solved] bash-completion for git |
|
|
Hi there,
I want to enable bash completion for git. Therefore I shouted
Code: |
eselect bashcomp enable 2 --globally
|
To my system. But no tab-actions...so whatnow?
greetings,
bienchen
Last edited by bienchen on Mon Jul 06, 2009 6:43 pm; edited 1 time in total |
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Sat Jul 04, 2009 9:10 pm Post subject: |
|
|
I tried it, works for me... after doing ". /etc/profile" |
|
Back to top |
|
|
bienchen Apprentice
Joined: 14 Sep 2004 Posts: 261 Location: Hamburg, Germany
|
Posted: Sat Jul 04, 2009 9:18 pm Post subject: |
|
|
Nope, does not work for me.
greetings,
bienchen |
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Sat Jul 04, 2009 10:14 pm Post subject: |
|
|
I did "eselect bashcomp list" and found git in the list, then did "eselect bashcomp enable git", then again "eselect bashcomp list" to verify there is an asterisk after git. Didn't bother with the numbers.
Then I found /etc/bash_completion.d/git and verified that it is a symlink to /usr/share/bash-completion/git, which exists.
Then I still had to do ". /etc/profile" to see a difference. After typing "git che" TAB TAB, it showed me
checkout cherry cherry-pick
If I'm not in a git directory, I get "fatal: error processing config file(s)"
You can try the same, see what's different on your system. |
|
Back to top |
|
|
bienchen Apprentice
Joined: 14 Sep 2004 Posts: 261 Location: Hamburg, Germany
|
Posted: Sat Jul 04, 2009 10:34 pm Post subject: |
|
|
Aha!
Now we are getting somewhere...
I have /usr/share/bash-completion/ with everything, but no /etc/bash_completion.d/.
Any idea what I have to do to get the /etc dir?
greetings,
bienchen |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Jul 04, 2009 11:44 pm Post subject: Re: bash-completion for git |
|
|
bienchen wrote: | Hi there,
I want to enable bash completion for git. Therefore I shouted
Code: |
eselect bashcomp enable 2 --globally
|
To my system. But no tab-actions...so whatnow?
greetings,
bienchen |
Code: |
eselect bashcomp enable --global git
|
_________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Sun Jul 05, 2009 12:31 pm Post subject: |
|
|
After using "grep /etc/bash_completion.d /var/db/pkg/*/*/CONTENTS", I see that only openoffice and gentoo-bashcomp install files there. I don't know how it is supposed to be created. You can create it manually, then repeat the eselect commands. |
|
Back to top |
|
|
bienchen Apprentice
Joined: 14 Sep 2004 Posts: 261 Location: Hamburg, Germany
|
Posted: Sun Jul 05, 2009 1:41 pm Post subject: |
|
|
Thanks. Now I have the /etc/bash_completion.d directory. But sourcing /etc/profile still doesn't help. Any mor suggestions?
greetings,
bienchen
P.S.:
With
eselect bashcomp enable --global git
I got my /etc/bash_completion.d |
|
Back to top |
|
|
bienchen Apprentice
Joined: 14 Sep 2004 Posts: 261 Location: Hamburg, Germany
|
Posted: Mon Jul 06, 2009 6:42 pm Post subject: |
|
|
Arrgh! Dis hurts so badly!
First of all, I should've done a neat
Code: |
emerge bash-completion
|
*bump*
bienchen |
|
Back to top |
|
|
|