blob: 28117f40dc6a0f642545cf15a10e2ad5c97b2895 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
output=aur-completion.bash
cmd=aur
cmd_args=@aur_pkgs
cmd_opts=(
-h --help
-l --list
-f --force
-g --git
-c:@files
--config:@files
)
reply_aur_pkgs() {
pkgs=( $(find ~/.aur/ -type d -mindepth 1 -maxdepth 1) );
for i in "${!pkgs[@]}";
do
pkgs[$i]=$(basename "${pkgs[$i]}");
done;
COMPREPLY=( $(compgen -W "${pkgs[*]}" -- "$cur") )
}
|