From 6c18848a903eb3ee06dccd915859ce64195c257c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:24:27 +0200 Subject: Adding upstream version 1:2.11. Signed-off-by: Daniel Baumann --- completions/dhclient | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 completions/dhclient (limited to 'completions/dhclient') diff --git a/completions/dhclient b/completions/dhclient new file mode 100644 index 0000000..ce4b745 --- /dev/null +++ b/completions/dhclient @@ -0,0 +1,34 @@ +# bash completion for dhclient -*- shell-script -*- + +_dhclient() +{ + local cur prev words cword + _init_completion || return + + case $prev in + -p | -e) + return + ;; + -D) + COMPREPLY=($(compgen -W 'LL LLT' -- "$cur")) + return + ;; + -*f) + _filedir + return + ;; + -s) + _known_hosts_real -- "$cur" + return + ;; + esac + + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) + else + _available_interfaces + fi +} && + complete -F _dhclient dhclient + +# ex: filetype=sh -- cgit v1.2.3