You are not logged in.

#1 2006-03-16 07:25:34

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

bash-completion with pacman [split]

lessthanjake wrote:

Install extra/bash-completion and you get bashcompletion for pacman -S.

How does it work? i have installed it but pacman -S gnome-pane does not give gnome-panel roll

Offline

#2 2006-03-16 09:18:04

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: bash-completion with pacman [split]

Gandalf, after installing bash completion, I believe you have to edit your .bashrc to load it. Sorry, I don't remember how, I use zsh now smile

Offline

#3 2006-03-16 10:24:30

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: bash-completion with pacman [split]

I just opened up another terminal and it worked so I suppose export source /etc/profile.d/bash-completion.sh should work to.
You have to give it a second because it takes time to read the database.

Offline

#4 2006-03-16 10:39:27

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: bash-completion with pacman [split]

Adding this to ~/.bashrc should work also:

. /etc/bash_completion

Offline

#5 2006-03-16 11:36:38

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: bash-completion with pacman [split]

I added the . /etc/bash_completion but

[wael@nasreddine ~]$ pacman -S xorbash: /usr/bin/find: Argument list too long

:'(
while looking for xorg, i added xor<Tab> and that's what i got hmmm... roll

Offline

#6 2006-03-16 11:54:12

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: bash-completion with pacman [split]

I have the same pb on my laptop, but not on my desktop. I don't know why.

Offline

#7 2006-03-16 11:56:50

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: bash-completion with pacman [split]

I know why now, Actually i'm trying to do as regular user, as root it works fine, i can't do it even with prefixing it with sudo since the auto completion has not entered the sudo envirement yet (no Enter pressed)

Offline

#8 2006-03-16 12:03:41

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: bash-completion with pacman [split]

split

using sudo works fine for me. All I did was open up another terminal after installing it -no modifications to bashrc. Did you try sourcing as I described above?

Offline

#9 2006-03-16 13:33:46

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: bash-completion with pacman [split]

_Gandalf_ wrote:

I know why now, Actually i'm trying to do as regular user, as root it works fine, i can't do it even with prefixing it with sudo since the auto completion has not entered the sudo envirement yet (no Enter pressed)

Well on my desktop I don't need to be root (and I don't see the point to be root if you are just looking for a package with -Ss)

Edit: The update of bash-completion seemed to fix everything

Offline

#10 2006-03-17 13:19:05

FrankTM
Member
From: Zwolle, Netherlands
Registered: 2006-02-19
Posts: 26

Re: bash-completion with pacman [split]

quite nice...

it doesnt get packages from custom repositories though
it would be nice to do a local scan on pacman or something to see what packages it can autocomplete
however that might be slowing the process down I guess, as every pacman update _could_ resolv in new available packages, not likely however smile


Here is your parachute and here is the manual. Welcome to Linux.

Offline

Board footer

Powered by FluxBB