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/lastlog | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 completions/lastlog (limited to 'completions/lastlog') diff --git a/completions/lastlog b/completions/lastlog new file mode 100644 index 0000000..214a174 --- /dev/null +++ b/completions/lastlog @@ -0,0 +1,25 @@ +# lastlog(8) completion -*- shell-script -*- + +_lastlog() +{ + local cur prev words cword split + _init_completion -s || return + + case $prev in + --before | --help | --time | -!(-*)@([bt]|h*)) + return + ;; + --user | -!(-*)u) + COMPREPLY=($(compgen -u -- "$cur")) + return + ;; + esac + + $split && return + + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace +} && + complete -F _lastlog lastlog + +# ex: filetype=sh -- cgit v1.2.3