[Freeipa-devel] bash completion

Rob Crittenden rcritten at redhat.com
Thu Jun 11 15:02:19 UTC 2009


I'm not ready to check this in yet but here is something I've been 
tinkering with, a bash completion script for the ipa command. You need 
bash 2.05a or higher with programmable completion and extended pattern 
matching enabled (it is on Fedora anyway).

All you need to do is source this file and then you can use tab 
completion on the IPA commands.

This is currently limited to just the command names, not the options.

I created the list of commands use the ipa help system, I'm attaching 
that screwy little script too.

Usage looks like:

ipa u[TAB] -> ipa user[TAB] ->
user2-create   user2-lock     user2-unlock   user-find      user-show
user2-delete   user2-mod      user-add       user-lock      user-unlock
user2-find     user2-show     user-del       user-mod

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipa.sh
Type: application/x-sh
Size: 3243 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090611/f66e7547/attachment.sh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: make_completion
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090611/f66e7547/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090611/f66e7547/attachment.bin>


More information about the Freeipa-devel mailing list