summaryrefslogtreecommitdiff
path: root/etc/completions/_pkg
blob: 5d958609086441b6f9bd60070b737cbbc817da1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#compdef pkg
## vim:ft=zsh

local values
local arguments

#TODO: seperate values that need arguments from those that don't,
# make this all nicer in general
values=(
	'add[install package]'
	'changelog[show changelog of package]'
	'changeroot[change default url for al packages]'
	'delete[remove package]'
	'info[show package info]'
	'install[install package]'
	'list[list installed packages]'
	'list-all[list remote available packages]'
	'local-update[update local packages list]'
	'log[show package log]'
	'remote-update[update remote pckages list]'
	'remove[remove package]'
	'status[check packages dependencies etc]'
	'update[update packages lists]'
	'upgrade[upgrade packages]'
)
arguments=(
	'*:file:_path_files -W /home/derf/packages -/'
)
_values -s ' ' -S ' ' -w 'pkg function' $values
_arguments -s $arguments