summary refs log tree commit diff
path: root/Completion/Unix/Command/_pkgrm
blob: 4edccbfdafdd501d78a41170d35b38f9038fba51 (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 "$@"