diff options
Diffstat (limited to 'completions/dhclient')
-rw-r--r-- | completions/dhclient | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/completions/dhclient b/completions/dhclient index 3d7e1e1a..10bbbe66 100644 --- a/completions/dhclient +++ b/completions/dhclient @@ -1,11 +1,9 @@ -# bash completion for dhclient +# bash completion for dhclient -*- shell-script -*- -have dhclient && _dhclient() +_dhclient() { - local cur prev - - COMPREPLY=() - _get_comp_words_by_ref cur prev + local cur prev words cword + _init_completion || return case $prev in -cf|-lf|-pf|-sf) @@ -27,10 +25,4 @@ have dhclient && _dhclient() } && complete -F _dhclient dhclient -# 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 |