|
Server IP : 161.35.85.9 / Your IP : 216.73.217.134 Web Server : nginx/1.30.1 System : Linux cheapdeb-ams3 7.0.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.0.9-1 (2026-05-22) x86_64 User : root ( 0) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/bash-completion/completions/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
# bash completion for fprintd-enroll and fprintd-verify -*- shell-script -*-
_comp_cmd_fprintd_enroll()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
local noargopts='!(-*|*[f]*)'
# shellcheck disable=SC2254
case $prev in
--help | -h)
return
;;
--finger | -${noargopts}f)
# Only -enroll may output a message with valid options in it
_comp_compgen_split -- "$(
"${1/-verify/-enroll}" --finger no-such-finger 2>&1 |
command sed \
-e s/,//g -ne 's/^.*Name must be one of \(.*\)/\1/p'
)"
return
;;
esac
if [[ $cur == -* ]]; then
_comp_compgen_help
return
fi
local REPLY
_comp_count_args -a "@(--finger|-${noargopts}[f])"
if ((REPLY == 1)); then
_comp_compgen_allowed_users
fi
} &&
complete -F _comp_cmd_fprintd_enroll fprintd-enroll fprintd-verify
# ex: filetype=sh