Skip to content

Commit

Permalink
lilo: add -B and -E completions
Browse files Browse the repository at this point in the history
Refs #369

Thanks-to: PauloHFB
  • Loading branch information
scop committed Dec 7, 2019
1 parent 712632a commit 7dd16ad
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions completions/lilo
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,20 @@ _lilo()
video' -- "$cur") )
return
;;
-B)
_filedir bmp
return
;;
-E)
_filedir '@(bmp|dat)'
return
;;
esac

if [[ "$cur" == -* ]]; then
# relevant options completion
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") )
COMPREPLY=( $(compgen -W '-A -B -b -c -C -d -E -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
Expand Down

0 comments on commit 7dd16ad

Please sign in to comment.