%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.101 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/etc/bash_completion.d/ |
Upload File : |
#-*-shell-script-*-
have apt-show-versions &&
_apt_show_versions()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ "$cur" == --*=* ]]
then
prev="${cur%=*}"
cur="${cur##*=}"
else
prev="${COMP_WORDS[COMP_CWORD-1]}"
fi
opts="-a --allversions -b --brief -h --help -i --initialize -ld --list-dir"
opts="$opts -nh --nohold -p --package -r --regex -stf --status-file"
opts="$opts -u --upgradeable -v --verbose"
# Look for options needing an argument.
# The used completion functions are defined in /etc/bash_completion.
case "$prev" in
-ld|--list-dir)
_filedir -d
return 0
;;
-p|--package)
COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" 2> /dev/null ) )
return 0
;;
-stf|--status-file)
_filedir
return 0
;;
*)
;;
esac
# Look for options without an argument.
if [[ "$cur" == -* ]]
then
COMPREPLY=( $(compgen -W "$opts" -- $cur) )
return 0
else
COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" 2> /dev/null ) )
return 0
fi
}
complete -F _apt_show_versions -o filenames apt-show-versions