blob: 893670479bf43468c1b1fe5fb50a176710d5f309 (
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
|
#compdef pkg
## vim:ft=zsh
local arguments
local all installed
all=(pkg -list-all)
installed=(pkg -list)
arguments=(
'-add[install package]:package:($($all))'
'-changelog[show changelog of package]:package:($($installed))'
'-changeroot[change default url for al packages]'
'-delete[remove package]:package:($($installed))'
'-info[show package info]:package:($($installed))'
'-install[install package]:package:($($all))'
'-list[list installed packages]'
'-list-all[list remote available packages]'
'-local-update[update local packages list]'
'-log[show package log]:package:($($installed))'
'-remote-update[update remote pckages list]'
'-remove[remove package]:package:($($installed))'
'-status[check packages dependencies etc]::package:($($installed))'
'-update[update packages lists]'
'-upgrade[upgrade packages]::package:($($installed))'
''
)
_arguments -s $arguments
|