mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-07-30 11:38:41 -07:00
18 lines
441 B
Bash
18 lines
441 B
Bash
# 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
|