Bug 141108

Summary: bash completion for yast2
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Stefan Sauer <ensonic>
Component: YaST2Assignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Enhancement    
Priority: P5 - None CC: suse-beta
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: simple bash completion for yast2

Description Stefan Sauer 2005-12-29 19:26:30 UTC
imho bash completion for yast would be nice to have. see attached implementation
Comment 1 Stefan Sauer 2005-12-29 19:28:53 UTC
Created attachment 61813 [details]
simple bash completion for yast2

please note that this is my first bash completion hook, so feel free to apply any changes.

to try it, copy the file to /etc/bash_completion.d/yast.sh ot just source it. then type 'yast2 <tab>'
Comment 2 Christian Boltz 2005-12-30 17:26:56 UTC
Good idea!

Possible enhancements:

* display   -i   option also. To do so, change the last line to
    complete -W '-i' -F _yast2 yast2

* display possible parameters for yast (without "2") also:
    complete -W '-i' -F _yast2 yast
Comment 3 Dr. Werner Fink 2006-01-09 11:23:39 UTC
This should do to /etc/bash_completion.d/yast.sh or
/etc/profile.d/yast.sh
Comment 4 Martin Lasarsch 2006-01-09 14:29:05 UTC
there is already something in factory:

d159:/tmp # rpm -qp --changelog yast2-2.13.16-2.i586.rpm 
* Tue Dec 20 2005 - visnov@suse.cz

- Include bash completion script
- 2.13.16