HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //snap/core20/2599/usr/share/bash-completion/completions/id
# id(1) completion                                         -*- shell-script -*-

_id()
{
    local cur prev words cword
    _init_completion || return

    if [[ "$cur" == -* ]]; then
        local opts=$(_parse_help "$1")
        [[ $opts ]] || opts="-G -g -u" # POSIX fallback
        COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
    else
        COMPREPLY=( $(compgen -u "$cur") )
    fi
} &&
complete -F _id id

# ex: filetype=sh