You are not logged in.

#1 2003-10-03 23:24:59

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

bash-completion for archlinux (ready for testing)

EDIT (20031013): new url & version 1.0 is out

Hello all,
I've created a bash-completion script for AL.
Get it from :
http://www.kegep.tuc.gr/~manolis/archli … ion.script

Then :

pacman -S bash-completion

copy my script as /etc/bash_completion.d/archlinux

source /etc/profile

or log out & back in to enable auto-completion.
Then simply try pacman -S [tab] to check it.
So far it auto-completes the init scripts (try /etc/rc.d/network [tab]...), makepkg & pacman.
Please test it & report any problems or suggestions so that it could get included in the bash-completion pkg.

Offline

#2 2003-10-04 04:35:04

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: bash-completion for archlinux (ready for testing)

Im not chassing you, i swear!

Can you post some explination about its use?? what it does exactly (i know what auto-completions is, but,  what auto-completes and how?)

thanks!


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#3 2003-10-04 12:22:03

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: bash-completion for archlinux (ready for testing)

sud_crow wrote:

Im not chassing you, i swear!

I begin to feel like a dot in pacman big_smile.

sud_crow wrote:

Can you post some explination about its use?? what it does exactly (i know what auto-completions is, but,  what auto-completes and how?)

Auto-completion is the best thing since fresh bread smile. You already use it, when you press [tab] or (ie pac[tab]) and it completes the rest of the word (ie pacman). The bash-completion pkg provides some more advanced completion features, like man pac[tab] and it completes it to man pacman, or ssh [tab] and it completes using the hosts included in ~/.ssh/known_hosts.
My script provides these features for ArchLinux. Simply try pacman -S [tab] and enjoy the list of all available packages for installation on your system. Or pacman -Q -l [tab] that completes from packages installed in your system. Then try /etc/rc.d/network [tab], it will list 'restart start stop'

(ps. [tab] == pressing the 'tab' key on your keyboard btw.)

Offline

#4 2003-10-04 15:35:57

netkrash
Member
From: Viña del Mar, Chile.
Registered: 2003-03-19
Posts: 95

Re: bash-completion for archlinux (ready for testing)

works great for me!! thank you very much for this script.

smile


GNU/Linux: Share & Enjoy!

Offline

#5 2003-10-05 03:33:16

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: bash-completion for archlinux (ready for testing)

Simply try pacman -S [tab] and enjoy the list of all available packages for installation on your system

Thats nice...
Thats what i meant by the "how does it works", i wanted to know what i could autocomplete...

Congrats, is a superb pkgs and scripting work. :shock:


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

Board footer

Powered by FluxBB