summaryrefslogtreecommitdiff
path: root/completions/dhclient
diff options
context:
space:
mode:
authorDavid Paleino <dapal@debian.org>2011-11-03 12:32:52 +0100
committerDavid Paleino <dapal@debian.org>2011-11-03 12:32:52 +0100
commit2c8171c38d87ddef31c92a76547d3fdf773a1337 (patch)
tree5e720d5a06ead72ed55454bf6647a712a761ed91 /completions/dhclient
parent9920a8faedf704420571d8072ccab27e9dac40ba (diff)
downloadbash-completion-2c8171c38d87ddef31c92a76547d3fdf773a1337.tar.gz
Imported Upstream version 1.90upstream/1.90
Diffstat (limited to 'completions/dhclient')
-rw-r--r--completions/dhclient16
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