2011-11-01 22:14:45 +02:00
|
|
|
# Slackware rpm2tgz completion -*- shell-script -*-
|
2011-01-08 21:56:08 +03:00
|
|
|
|
|
|
|
_rpm2tgz()
|
|
|
|
{
|
2011-04-22 03:03:22 +04:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
2011-01-08 21:56:08 +03:00
|
|
|
if [[ "$cur" == -* ]]; then
|
2011-11-20 23:42:20 +03:00
|
|
|
COMPREPLY=( $( compgen -W '-s -S -n -r -d -c' -- "$cur" ) )
|
2011-11-20 17:00:03 +03:00
|
|
|
return
|
2011-01-08 21:56:08 +03:00
|
|
|
fi
|
|
|
|
|
2011-11-20 17:00:03 +03:00
|
|
|
_filedir "rpm"
|
|
|
|
} && complete -F _rpm2tgz rpm2tgz rpm2txz rpm2targz
|
2011-05-02 13:18:33 +03:00
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|