summaryrefslogtreecommitdiff
path: root/completions/lilo
diff options
context:
space:
mode:
Diffstat (limited to 'completions/lilo')
-rw-r--r--completions/lilo18
1 files changed, 4 insertions, 14 deletions
diff --git a/completions/lilo b/completions/lilo
index ab0d9dc3..f81f049a 100644
--- a/completions/lilo
+++ b/completions/lilo
@@ -1,6 +1,5 @@
-# bash completion for lilo(8)
+# bash completion for lilo(8) -*- shell-script -*-
-have lilo && {
_lilo_labels()
{
COMPREPLY=( $( compgen -W "$( awk -F'=' '/label/ {print $2}' \
@@ -9,10 +8,8 @@ _lilo_labels()
_lilo()
{
- local cur prev
-
- COMPREPLY=()
- _get_comp_words_by_ref cur prev
+ local cur prev words cword
+ _init_completion || return
case $prev in
-C|-i|-m|-s|-S)
@@ -47,14 +44,7 @@ _lilo()
COMPREPLY=( $( compgen -W '-A -b -c -C -d -f -g -i -I -l -L -m \
-M -p -P -q -r -R -s -S -t -T -u -U -v -V -w -x -z' -- "$cur" ) )
fi
-}
+} &&
complete -F _lilo lilo
-}
-# 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