You are not logged in.

#1 2010-01-18 00:05:39

japtar10101
Member
Registered: 2009-08-08
Posts: 57

[SOLVED] Auto-complete for man pages?

Quick question: is it possible to make the man command auto-complete-able?  For example:

$man fire<tab> -> man firefox

You can do it with sudo, so I was curious.

Last edited by japtar10101 (2010-01-18 17:33:50)

Offline

#2 2010-01-18 00:10:33

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] Auto-complete for man pages?

pacman -S bash-completion

Offline

#3 2010-01-18 00:15:55

SoleSoul
Member
From: Israel
Registered: 2009-06-29
Posts: 319

Re: [SOLVED] Auto-complete for man pages?

The problem with man firefox is not the autocompletion. the page simply doesn't exist.
Other man pages autocomletion works just fine.

Offline

#4 2010-01-18 00:23:14

japtar10101
Member
Registered: 2009-08-08
Posts: 57

Re: [SOLVED] Auto-complete for man pages?

SoleSoul wrote:

The problem with man firefox is not the autocompletion. the page simply doesn't exist.
Other man pages autocomletion works just fine.

I didn't think firefox had a man page, but I couldn't think of any other program with a distinct name.

brisbin33 wrote:
pacman -S bash-completion

Sweet, I'll give it a shot smile

Offline

#5 2010-01-18 02:17:26

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: [SOLVED] Auto-complete for man pages?

Just a warning about bash-completion --- it is huge and will make your shells take for ever to start up. You would be better off choosing the pertinent functions therefrom and including just them in your bashrc.

Offline

#6 2010-01-18 05:47:52

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: [SOLVED] Auto-complete for man pages?

brisbin33 wrote:
pacman -S bash-completion

I think it did not work but restart the X is the solution lol

Offline

#7 2010-01-18 06:01:08

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: [SOLVED] Auto-complete for man pages?

egan, would you please explain further when you said,
"You would be better off choosing the pertinent functions therefrom and including just them in your bashrc."


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#8 2010-01-18 06:35:16

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] Auto-complete for man pages?

I can use completion for man as well, maybe use:

echo "set show-all-if-ambiguous on" >> ~/.bashrc && source ~/.bashrc

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#9 2010-01-18 13:06:58

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] Auto-complete for man pages?

egan wrote:

it is huge and will make your shells take for ever to start up

cannot reproduce.

Offline

#10 2010-01-18 16:11:02

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: [SOLVED] Auto-complete for man pages?

brisbin33 wrote:
egan wrote:

it is huge and will make your shells take for ever to start up

cannot reproduce.

Well "forever" for a shell is about 1-2 seconds. wink
I need to have my shells start up instantly. Also all those functions take up a good portion of memory when you are running ~12 shells at any one time.

Offline

#11 2010-01-18 17:34:13

japtar10101
Member
Registered: 2009-08-08
Posts: 57

Re: [SOLVED] Auto-complete for man pages?

Added Solved flag.  Sorry, I always forget to do that!

Offline

Board footer

Powered by FluxBB