File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Debian apt-cache(8) completion -*- shell-script -*-
2
2
3
3
# List APT binary packages
4
+ # TODO:API: rework to use vars rather than outputting
4
5
_comp_xfunc_apt_cache_packages ()
5
6
{
6
7
apt-cache --no-generate pkgnames " $cur " 2> /dev/null || :
7
8
}
8
9
9
10
# List APT source packages
11
+ # TODO:API: rework to use vars rather than outputting
10
12
_comp_xfunc_apt_cache_sources ()
11
13
{
12
14
compgen -W " $( apt-cache dumpavail |
13
15
awk ' $1 == "Source:" { print $2 }' | sort -u) " -- " $1 "
14
16
}
15
17
16
18
# List APT source packages
19
+ # TODO:API: rework to use vars rather than outputting
17
20
_comp_xfunc_apt_cache_src_packages ()
18
21
{
19
22
compgen -W ' $(_comp_xfunc_apt_cache_sources "$cur")' -- " $cur "
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ _comp_cmd_ssh__queries()
10
10
_comp_compgen -ac " ${cur,,} " -- -W " $queries help"
11
11
}
12
12
13
+ # TODO:API:rework to use vars rather than outputting
13
14
_comp_xfunc_ssh_query ()
14
15
{
15
16
${1:- ssh} -Q " $2 " 2> /dev/null
You can’t perform that action at this time.
0 commit comments