summaryrefslogtreecommitdiff
path: root/completions/zsh/_pacdiff
blob: 5ceb36a3af1ba179901eaa30fcda43b003e2fa23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#compdef pacdiff

declare -a args
args=(
	# Use a mutually exlusive group, indicated by parenthesis around group name
	+ '(search)'
	{-f,--find}'[scan using find]'
	{-l,--locate}'[scan using locate]'
	{-p,--pacmandb}'[scan active config files from pacman database]'

	+ options
	'(-b --backup)'{-b,--backup}'[when overwriting, save old files with .bak]'
	'(-c --cachedir)'{-c,--cachedir}'[scan directory for 3-way merge base candidates]:directory:_files -/'
	'--nocolor[do not colorize output]'
	'(-o --output)'{-o,--output}'[print files instead of merging them]'
	'(-s --sudo)'{-s,--sudo}'[use sudo and sudoedit to merge/remove files]'
	'(-3 --threeway)'{-3,--threeway}'[view diffs in 3-way fashion]'
	'(-)'{--help,-h}'[display help message and exit]'
	'(-)'{--version,-V}'[display version information and exit]'
)

_arguments $args