summary refs log tree commit diff
path: root/Completion/Unix/Command/_pkgrm
blob: 25a95022186270faae0fa9b701e26ef145a95772 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#compdef pkgrm

_pkgrm() {
	_arguments -s \
	'-Y[select packages by category]:category: ' \
	- set1 \
	'-n[non-interactive mode]' \
	'-v[trace all scripts]' \
	'-a[admin file]:admin file:_files' \
	"-A[force removal of all files]" \
	"-M[don't use vfstab file]" \
	'-R[root path]:root path:_files -/' \
	'-V[alternate vfstab file]:vfstab file:_files' \
	'*:package instance:_pkg_instance --_opts installed:set1--R' \
	- set2 \
	'-s[spool package]:spool directory:_files -/' \
	'*:package instance:_pkg_instance --_opts spooled:set2--s'
}

_pkgrm "$@"