Bugzilla – Bug 141108
bash completion for yast2
Last modified: 2006-01-09 14:29:05 UTC
imho bash completion for yast would be nice to have. see attached implementation
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>'
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
This should do to /etc/bash_completion.d/yast.sh or /etc/profile.d/yast.sh
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