File: _0launch

package info (click to toggle)
0install-solver 2.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,324 kB
  • sloc: ml: 26,363; xml: 2,700; sh: 198; ansic: 132; python: 105; makefile: 68
file content (13 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#compdef 0launch
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