Bug 141108 - bash completion for yast2
Summary: bash completion for yast2
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Enhancement
Target Milestone: ---
Assignee: E-mail List
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-29 19:26 UTC by Stefan Sauer
Modified: 2006-01-09 14:29 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
simple bash completion for yast2 (340 bytes, text/plain)
2005-12-29 19:28 UTC, Stefan Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
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