4a135b33b7
* upgraded to subversion bash completion script shipped with subversion 1.6.17 * added git bash completion script shipped with git 1.7.5.4 * readded bash completion to the image git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42257 a95241bf-73f2-0310-859d-f6bbb57e9c96
60 lines
1.3 KiB
Bash
60 lines
1.3 KiB
Bash
# bash completion for mkinitrd
|
|
|
|
have mkinitrd &&
|
|
_mkinitrd()
|
|
{
|
|
local cur prev args split=false
|
|
|
|
COMPREPLY=()
|
|
_get_comp_words_by_ref cur prev
|
|
|
|
_split_longopt && split=true
|
|
|
|
case $prev in
|
|
--preload|--with|--builtin)
|
|
_modules
|
|
return 0
|
|
;;
|
|
--fstab|--dsdt)
|
|
_filedir
|
|
return 0
|
|
;;
|
|
--net-dev)
|
|
_available_interfaces
|
|
return 0
|
|
;;
|
|
esac
|
|
|
|
$split && return 0
|
|
|
|
if [[ "$cur" == -* ]]; then
|
|
COMPREPLY=( $( compgen -W '--version --help -v -f --preload \
|
|
--force-scsi-probe --omit-scsi-modules \
|
|
--omit-ide-modules --image-version --force-raid-probe \
|
|
--omit-raid-modules --with --force-lvm-probe \
|
|
--omit-lvm-modules --builtin --omit-dmraid --net-dev \
|
|
--fstab --nocompress --dsdt --bootchart' -- "$cur" ) )
|
|
else
|
|
_count_args
|
|
|
|
case $args in
|
|
1)
|
|
_filedir
|
|
;;
|
|
2)
|
|
_kernel_versions
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
} &&
|
|
complete -F _mkinitrd mkinitrd
|
|
|
|
# Local variables:
|
|
# mode: shell-script
|
|
# sh-basic-offset: 4
|
|
# sh-indent-comment: t
|
|
# indent-tabs-mode: nil
|
|
# End:
|
|
# ex: ts=4 sw=4 et filetype=sh
|