File: _0install

package info (click to toggle)
zeroinstall-injector 2.18-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,500 kB
  • sloc: ml: 26,524; xml: 2,700; ansic: 319; sh: 236; makefile: 133; python: 105
file content (13 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#compdef 0install
COMP_CWORD=$CURRENT "${words[1]}" _complete zsh "${words[@]}" |\
while read item
do
	case "$item" in
		add\ *) compadd -V dontsort -- "${item/#add /}" ;;
		filter\ *) compadd -- "${item/#filter /}" ;;
		prefix\ *) compadd -S '' -- "${item/#prefix /}" ;;
		file) _files ;;
		"") ;;
		*) echo 1>&2 Bad reply $item ;;
	esac
done