mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
various cleanups: fix indentation and capitalisation of descriptions
This commit is contained in:
parent
fb81e044f1
commit
ce743b7920
15 changed files with 293 additions and 461 deletions
|
|
@ -1,5 +1,14 @@
|
||||||
2005-08-01 Oliver Kiddle <opk@zsh.org>
|
2005-08-01 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* unposted: Completion/Debian/Command/_apt-move,
|
||||||
|
Completion/Debian/Command/_module-assistant,
|
||||||
|
Completion/Debian/Command/_uscan, Completion/Debian/Command/_wajig,
|
||||||
|
Completion/Unix/Command/_cal, Completion/Unix/Command/_ccal,
|
||||||
|
Completion/Unix/Command/_dhclient, Completion/Unix/Command/_fortune,
|
||||||
|
Completion/Unix/Command/_mencal, Completion/Unix/Command/_perforce,
|
||||||
|
Completion/Unix/Command/_pump, Completion/Unix/Command/_surfraw:
|
||||||
|
various cleanups: fix indentation and capitalisation of descriptions
|
||||||
|
|
||||||
* 21393: Completion/Unix/Command/_kvno: add missing local declarations
|
* 21393: Completion/Unix/Command/_kvno: add missing local declarations
|
||||||
|
|
||||||
2005-08-01 Peter Stephenson <pws@csr.com>
|
2005-08-01 Peter Stephenson <pws@csr.com>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
#compdef apt-move
|
#compdef apt-move
|
||||||
|
|
||||||
local curcontext="$curcontext" state line ret=1
|
local curcontext="$curcontext" state line cmds ret=1
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
|
'-a[process all packages]' \
|
||||||
'-c[specify an alternative configuration file]' \
|
'-c[specify an alternative configuration file]' \
|
||||||
'-d[override the DIST setting]' \
|
'-d[override the DIST setting]' \
|
||||||
'-f[override the MAXDELETE setting]' \
|
'-f[override the MAXDELETE setting]' \
|
||||||
|
|
@ -14,35 +15,37 @@ _arguments -C \
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
cmds)
|
cmds)
|
||||||
local -a cmds
|
cmds=(
|
||||||
cmds=('get:update your master files from local apt' \
|
'get:update your master files from local apt'
|
||||||
'getlocal:alias of get' \
|
'getlocal:alias of get'
|
||||||
'fsck:fix broken repositories' \
|
'fsck:fix broken repositories'
|
||||||
'move:move cache files into mirror tree' \
|
'move:move cache files into mirror tree'
|
||||||
'movefile:move files into the repository' \
|
'movefile:move files into the repository'
|
||||||
'delete:delete obsolete packages' \
|
'delete:delete obsolete packages'
|
||||||
'packages:create new local Packages files' \
|
'packages:create new local Packages files'
|
||||||
'update:alias for: get move delete packages' \
|
'update:alias for: get move delete packages'
|
||||||
'local:alias for: move delete packages' \
|
'local:alias for: move delete packages'
|
||||||
'localupdate:alias for: getlocal move delete packages' \
|
'localupdate:alias for: getlocal move delete packages'
|
||||||
'mirror:update your local mirror from remote rsync site' \
|
'mirror:update your local mirror from remote rsync site'
|
||||||
'sync:same as mirror, but only gets packages that you currently have installed on your system' \
|
'sync:same as mirror, but only gets packages that you currently have installed on your system'
|
||||||
'exclude:prints a list of all packages EXCLUDED from the mirror by the .exclude file' \
|
'exclude:prints a list of all packages EXCLUDED from the mirror by the .exclude file'
|
||||||
'listbin:prints lists of packages which can serve as the input to mirrorbin(mirror,sync,repo)' \
|
'listbin:prints lists of packages which can serve as the input to mirrorbin(mirror,sync,repo)'
|
||||||
'listsrc:same as listbin, but lists source packages' \
|
'listsrc:same as listbin, but lists source packages'
|
||||||
'mirrorbin:same as mirror, but gets the packages specified on stdin' \
|
'mirrorbin:same as mirror, but gets the packages specified on stdin'
|
||||||
'mirrorsrc:same as mirrorbin, but gets source packages')
|
'mirrorsrc:same as mirrorbin, but gets source packages'
|
||||||
|
)
|
||||||
_describe -t commands 'apt-move command' cmds && ret=0
|
_describe -t commands 'apt-move command' cmds && ret=0
|
||||||
;;
|
;;
|
||||||
args)
|
args)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
get|getlocal)
|
get|getlocal)
|
||||||
# A directory or nothing
|
_directories && ret=0
|
||||||
_files -/ && ret=0
|
|
||||||
;;
|
;;
|
||||||
movefile)
|
movefile)
|
||||||
# A .dsc or a .deb
|
_files -g "*.d(sc|eb)(-.)" && ret=0
|
||||||
_files -g "*.d(sc|eb)" && ret=0
|
;;
|
||||||
|
listbin)
|
||||||
|
_wanted lists expl list compadd mirror sync repo
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
|
|
@ -3,21 +3,21 @@
|
||||||
typeset -a _module_assistant_commands
|
typeset -a _module_assistant_commands
|
||||||
|
|
||||||
_module_assistant_commands=(
|
_module_assistant_commands=(
|
||||||
"update[synchronize version index files]"
|
'update[synchronize version index files]'
|
||||||
"prepare[install required kernel headers package]"
|
'prepare[install required kernel headers package]'
|
||||||
"fakesource[install required kernel source package]"
|
'fakesource[install required kernel source package]'
|
||||||
"list[a print a list of details about available packages]"
|
'list[a print a list of details about available packages]'
|
||||||
"list-available[b print a list of details about available packages ]"
|
'list-available[b print a list of details about available packages]'
|
||||||
"la[c print a list of details about available packages ]"
|
'la[c print a list of details about available packages]'
|
||||||
"list-installed[ print a list of details about installed packages ]"
|
'list-installed[ print a list of details about installed packages]'
|
||||||
"li[print a list of details about installed packages ]"
|
'li[print a list of details about installed packages]'
|
||||||
"search[search for packages]"
|
'search[search for packages]'
|
||||||
"get[install specified source package]"
|
'get[install specified source package]'
|
||||||
"build[build specified packages]"
|
'build[build specified packages]'
|
||||||
"install[install specified packages]"
|
'install[install specified packages]'
|
||||||
"auto-install[do all necessary steps to install specified packages]"
|
'auto-install[do all necessary steps to install specified packages]'
|
||||||
"clean[clear build directories of the kernel packages]"
|
'clean[clear build directories of the kernel packages]'
|
||||||
"purge[clear cache and remove all binary packages of source package]"
|
'purge[clear cache and remove all binary packages of source package]'
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments -A \
|
_arguments -A \
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@ _arguments \
|
||||||
'(--report --no-download --download)'{--report,--no-download}'[report but do not download]' \
|
'(--report --no-download --download)'{--report,--no-download}'[report but do not download]' \
|
||||||
'--debug[dump downloaded pages to stdout]' \
|
'--debug[dump downloaded pages to stdout]' \
|
||||||
'(--report --no-download --download)--download[report and download]' \
|
'(--report --no-download --download)--download[report and download]' \
|
||||||
'(--pasv --no-pasv)--pasv[force PASV mode for FTP]' \
|
'(--pasv --no-pasv)--pasv[force passive mode for ftp]' \
|
||||||
'(--pasv --no-pasv)--no-pasv[do not use PASV mode for FTP]' \
|
'(--pasv --no-pasv)--no-pasv[do not use passive mode for ftp]' \
|
||||||
'(--symlink --no-symlink)--symlink[make orig.tar.gz symlinks]' \
|
'(--symlink --no-symlink)--symlink[make orig.tar.gz symlinks]' \
|
||||||
'(--symlink --no-symlink)--no-symlink[do not make orig.tar.gz symlinks]' \
|
'(--symlink --no-symlink)--no-symlink[do not make orig.tar.gz symlinks]' \
|
||||||
'(--verbose --no-verbose)--verbose[give verbose output]' \
|
'(--verbose --no-verbose)--verbose[give verbose output]' \
|
||||||
'(--verbose --no-verbose)--no-verbose[do not give verbose output]' \
|
'(--verbose --no-verbose)--no-verbose[do not give verbose output]' \
|
||||||
'--check-dirname-level:level:((0\:never\ check\ the\ directory\ name 1\:only\ check\ directory\ name\ if\ we\ had\ to\ change\ directory 2\:always\ check\ the\ directory\ name))' \
|
'--check-dirname-level:level:((0\:never\ check\ the\ directory\ name 1\:only\ check\ directory\ name\ if\ we\ had\ to\ change\ directory 2\:always\ check\ the\ directory\ name))' \
|
||||||
'--check-dirname-regex:perlre:' \
|
'--check-dirname-regex:perl regex' \
|
||||||
'(--no-conf --noconf)'{--no-conf,--noconf}'[do not read any configuration files]' \
|
'(--no-conf --noconf)'{--no-conf,--noconf}'[do not read any configuration files]' \
|
||||||
'--help[help]' \
|
'--help[display help information]' \
|
||||||
'--version[version]'
|
'--version[display version information]'
|
||||||
|
|
|
||||||
|
|
@ -1,248 +1,77 @@
|
||||||
#compdef wajig
|
#compdef wajig
|
||||||
|
|
||||||
# $Id: _wajig,v 1.1 2005/01/09 06:23:58 clint Exp $
|
local curcontext="$curcontext" state line cmds argno ret=1
|
||||||
|
|
||||||
# quarl 2005-01-08 initial version
|
_arguments -C -s \
|
||||||
|
|
||||||
# local curcontext="$curcontext" state line cmds ret=1
|
|
||||||
|
|
||||||
_wajig_commands=(
|
|
||||||
'addcdrom:add a CD-ROM to the list of available sources of packages'
|
|
||||||
'autoalts:mark the alternative to be auto set (using set priorities)'
|
|
||||||
'autoclean:remove superseded deb files from the download cache'
|
|
||||||
'autodownload:do an update followed by a download of all updated packages'
|
|
||||||
'autoinstall:perform an install without asking questions (non-interactive)'
|
|
||||||
'available:list versions of packages available for installation'
|
|
||||||
'bug:check reported bugs in package using the Debian Bug Tacker'
|
|
||||||
'build:retrieve/unpack sources and build .deb for the named packages'
|
|
||||||
'builddepend:retrieve packages required to build listed packages'
|
|
||||||
'changelog:retrieve latest changelog for the package'
|
|
||||||
'clean:remove all deb files from the download cache'
|
|
||||||
'commands:list all the JIG commands and one line descriptions for each'
|
|
||||||
'dailyupgrade:perform an update then a dist-upgrade'
|
|
||||||
'dependents:list of packages which depend/recommend/suggest the package'
|
|
||||||
'describe:one line description of packages (-v and -vv for more detail)'
|
|
||||||
'describenew:one line description of new packages'
|
|
||||||
'detail:provide a detailed description of package (describe -vv)'
|
|
||||||
'detailnew:provide a detailed description of new packages (describe -vv)'
|
|
||||||
'distupgrade:upgrade to new distribution (installed and new rqd packages)'
|
|
||||||
'docs:equivalent to help with -verbose=2'
|
|
||||||
'download:download package files ready for an install'
|
|
||||||
'filedownload:download packages listed in file ready for an install'
|
|
||||||
'fileinstall:install packages listed in a file'
|
|
||||||
'fileremove:remove packages listed in a file'
|
|
||||||
'findfile:search for a file within installed packages'
|
|
||||||
'findpkg:search for an unofficial Debian package at apt-get.org'
|
|
||||||
'fixconfigure:perform dpkg --configure -a (to fix interrupted configure)'
|
|
||||||
'fixinstall:perform apt-get -f install (to fix broken dependencies)'
|
|
||||||
'fixmissing:perform apt-get --fix-missing upgrade'
|
|
||||||
'force:install packages and ignore file overwrites and depends'
|
|
||||||
'help:print documentation (detail depends on --verbose)'
|
|
||||||
'hold:place listed packages on hold so they are not upgraded'
|
|
||||||
'init:initialise or reset the JIG archive files'
|
|
||||||
'install:install (or upgrade) one or more packages or .deb files'
|
|
||||||
'installr:install package and associated recommended packages'
|
|
||||||
'installrs:install package and recommended and suggested packages'
|
|
||||||
'installs:install package and associated suggested packages'
|
|
||||||
'install/dist:install packages from specified distribution'
|
|
||||||
'integrity:check the integrity of installed packages (through checksums)'
|
|
||||||
'large:list size of all large (>10MB) installed packages'
|
|
||||||
'lastupdate:identify when an update was last performed'
|
|
||||||
'list:list the status and description of installed packages'
|
|
||||||
'listall:list a one line description of every known package'
|
|
||||||
'listalts:list the objects that can have alternatives configured'
|
|
||||||
'listcache:list the contents of the download cache'
|
|
||||||
'listcommands:list all the JIG commands and one line descriptions for each'
|
|
||||||
'listdaemons:list the daemons that JIG can start/stop/restart'
|
|
||||||
'listfiles:list the files that are supplied by the named package'
|
|
||||||
'listhold:list those packages on hold'
|
|
||||||
'listinstalled:List packages (with optional argument substring) installed'
|
|
||||||
'listnames:list all known packages or those containing supplied string'
|
|
||||||
'listorphans:list libraries not required by any installed package'
|
|
||||||
'liststatus:same as list but only prints first two columns, not truncated'
|
|
||||||
'listwide:same as list but avoids truncating package names'
|
|
||||||
'localdist-upgrade:dist-upgrade using packages already downloaded'
|
|
||||||
'localupgrade:upgrade using packages already downloaded, but not any others'
|
|
||||||
'move:move packages in the download cache to a local Debian mirror'
|
|
||||||
'new:list packages that became available since last update'
|
|
||||||
'news:obtain the latest news about the package'
|
|
||||||
'newupgrades:list packages newly available for upgrading'
|
|
||||||
'nonfree:list installed packages that do not meet the DFSG'
|
|
||||||
'orphans:list libraries not required by any installed package'
|
|
||||||
'package:generate a .deb file for an installed package'
|
|
||||||
'policy:from preferences file show priorities/policy (available)'
|
|
||||||
'purge:remove one or more packages and configuration files'
|
|
||||||
'purgedepend:purge package and those it depend on and not required by others'
|
|
||||||
'purgeorphans:purge orphaned libraries (not required by installed packages)'
|
|
||||||
"readme:display the package's README file from /usr/share/doc"
|
|
||||||
'recdownload:download package and any it depends on'
|
|
||||||
'recommended:install package and associated recommended packages'
|
|
||||||
'reconfigure:reconfigure the named installed packages or run gkdebconf'
|
|
||||||
'reinstall:reinstall each of the named packages'
|
|
||||||
'reload:reload daemon configs, e.g., gdm, apache (see list-daemons)'
|
|
||||||
'remove:remove one or more packages (see also purge)'
|
|
||||||
'removedepend:remove package and its dependees not required by others'
|
|
||||||
'removeorphans Remove orphaned libraries (not required by installed packages)'
|
|
||||||
'repackage:generate a .deb file for an installed package'
|
|
||||||
'reset:initialise or reset the JIG archive files'
|
|
||||||
'restart:stop then start a daemon, e.g., gdm, apache (see list-daemons)'
|
|
||||||
'rpm2deb:convert a RedHat .rpm file to a Debian .deb file'
|
|
||||||
'rpminstall:install a RedHat .rpm package'
|
|
||||||
'rpmtodeb:convert a RedHat .rpm file to a Debian .deb file'
|
|
||||||
'search:search for packages containing listed words'
|
|
||||||
'searchapt:find local Debian archives suitable for sources.list'
|
|
||||||
'setup:configure the sources.list file which locates Debian archives'
|
|
||||||
'show:provide a detailed description of package [same as detail]'
|
|
||||||
'showdistupgrade:trace the steps that a dist-upgrade would perform'
|
|
||||||
'showinstall:trace the steps that an install would perform'
|
|
||||||
'showremove:trace the steps that a remove would perform'
|
|
||||||
'showupgrade:trace the steps that an upgrade would perform'
|
|
||||||
'sizes:print out the size (in K) of all, or listed, installed packages'
|
|
||||||
'snapshot:generates list of package=version for all installed packages'
|
|
||||||
'source:retrieve and unpack sources for the named packages'
|
|
||||||
'start:start a daemon, e.g., gdm, apache (see list-daemons)'
|
|
||||||
'status:show the version and available version of packages'
|
|
||||||
'statusmatch:show the version and available version of matching packages'
|
|
||||||
'statussearch:show the version and available version of matching packages'
|
|
||||||
'stop:stop a daemon, e.g., gdm, apache (see list-daemons)'
|
|
||||||
'suggested:install package and associated suggested packages'
|
|
||||||
'tasksel:run the Gnome task selector to install groups of packages'
|
|
||||||
'toupgrade:list packages with newer versions available for upgrading'
|
|
||||||
'unhold:remove listed packages from hold so they are again upgraded'
|
|
||||||
'unofficial:search for an unofficial Debian package at apt-get.org'
|
|
||||||
'update:update the list of down-loadable packages'
|
|
||||||
'updatealts:update default alternative for things like x-window-manager'
|
|
||||||
'upgrade:upgrade all of the installed packages or just those listed'
|
|
||||||
'whatis:a synonym for describe'
|
|
||||||
'whichpkg:find the package that supplies the given command or file'
|
|
||||||
)
|
|
||||||
|
|
||||||
_wajig_command() {
|
|
||||||
_describe -t commands 'aptitude command' _wajig_commands
|
|
||||||
}
|
|
||||||
|
|
||||||
_wajig_alternatives() {
|
|
||||||
_files -W /var/lib/dpkg/alternatives
|
|
||||||
}
|
|
||||||
|
|
||||||
_wajig_services() {
|
|
||||||
_files -W /etc/init.d
|
|
||||||
}
|
|
||||||
|
|
||||||
_wajig_subcommand() {
|
|
||||||
((argno = CURRENT-2))
|
|
||||||
case ${words[2]:gs/-/} in
|
|
||||||
addcdrom) ;;
|
|
||||||
autoalts | autoalternatives) ((argno==1)) && _wajig_alternatives ;;
|
|
||||||
autoclean) ;;
|
|
||||||
autodownload) ;;
|
|
||||||
autoinstall) _deb_packages uninstalled ;;
|
|
||||||
available) _deb_packages available ;;
|
|
||||||
bug | bugs) ((argno==1)) && _deb_packages available ;;
|
|
||||||
build) _deb_packages available ;;
|
|
||||||
builddepend) _deb_packages available ;;
|
|
||||||
changelog) _deb_packages available ;;
|
|
||||||
clean) ;;
|
|
||||||
dailyupgrade) ;;
|
|
||||||
dependents) ((argno==1)) && _deb_packages available ;;
|
|
||||||
describe | whatis) _deb_packages available ;;
|
|
||||||
describenew) ;;
|
|
||||||
detail | details | show) _deb_packages available ;;
|
|
||||||
detailnew | newdetail) ;;
|
|
||||||
distupgrade) ;;
|
|
||||||
doc | docs) ;;
|
|
||||||
download) _deb_packages available ;;
|
|
||||||
filedownload | downloadfile) ((argno==1)) && _files ;;
|
|
||||||
fileinstall | installfile) ((argno==1)) && _files ;;
|
|
||||||
fileremove | removefile) ((argno==1)) && _files ;;
|
|
||||||
findfile) ((argno==1)) && _files ;;
|
|
||||||
findpkg | unofficial) ;; # no completion available
|
|
||||||
fixconfigure) ;;
|
|
||||||
fixinstall) ;;
|
|
||||||
fixmissing) ;;
|
|
||||||
force) _deb_packages uninstalled ;;
|
|
||||||
geturl) ((argno==1)) && _deb_packages available ;;
|
|
||||||
help) ;;
|
|
||||||
hold) _deb_packages installed ;;
|
|
||||||
init) ;;
|
|
||||||
install) _deb_packages uninstalled ; _files -g '*.deb' ;;
|
|
||||||
installr | recommended) _deb_packages uninstalled ;;
|
|
||||||
installrs) _deb_packages uninstalled ;;
|
|
||||||
installs | suggested) _deb_packages uninstalled ;;
|
|
||||||
install/*) _deb_packages uninstalled ;;
|
|
||||||
integrity) ;;
|
|
||||||
large) _deb_packages installed ;;
|
|
||||||
lastupdate) ;;
|
|
||||||
list | listwide) ;; # no completion available
|
|
||||||
listall) ;;
|
|
||||||
listalts | listalternatives) ;;
|
|
||||||
listcache) ;; # no completion available
|
|
||||||
listcommands | commands) ;;
|
|
||||||
listdaemons) ;;
|
|
||||||
listfiles) ((argno==1)) && _deb_packages installed ;;
|
|
||||||
listhold) ;;
|
|
||||||
listinstalled) ;; # no completion available
|
|
||||||
listnames) ;; # no completion available
|
|
||||||
listorphans | orphans) ;;
|
|
||||||
liststatus) ;; # no completion available
|
|
||||||
localdistupgrade) ;;
|
|
||||||
localupgrade) ;;
|
|
||||||
move) ;;
|
|
||||||
new) ;;
|
|
||||||
news) _deb_packages available ;;
|
|
||||||
newupgrades) ;;
|
|
||||||
nonfree) ;;
|
|
||||||
policy) _deb_packages available ;;
|
|
||||||
purge) _deb_packages xinstalled ;;
|
|
||||||
purgedepend) ((argno==1)) && _deb_packages xinstalled ;;
|
|
||||||
purgeorphans) ;;
|
|
||||||
readme) _deb_packages installed ;;
|
|
||||||
recdownload) _deb_packages available ;;
|
|
||||||
reconfigure) _deb_packages installed ;;
|
|
||||||
reinstall) _deb_packages installed ;;
|
|
||||||
reload) ((argno==1)) && _wajig_services ;;
|
|
||||||
remove) _deb_packages installed ;;
|
|
||||||
removedepend) _deb_packages installed ;;
|
|
||||||
removeorphans) ;;
|
|
||||||
repackage | package) ((argno==1)) && _deb_packages installed ;;
|
|
||||||
reset) ;;
|
|
||||||
restart) ((argno==1)) && _wajig_services ;;
|
|
||||||
rpminstall) ((argno==1)) && _files -g '*.rpm' ;;
|
|
||||||
rpmtodeb | rpm2deb) ((argno==1)) && _files -g '*.rpm' ;;
|
|
||||||
search) ;; # no completions available
|
|
||||||
searchapt) compadd stable testing unstable ;;
|
|
||||||
setup | editsources) ;;
|
|
||||||
showdistupgrade) ;;
|
|
||||||
showinstall) _deb_packages uninstalled ;;
|
|
||||||
showremove) _deb_packages installed ;;
|
|
||||||
showupgrade) ;;
|
|
||||||
size | sizes) _deb_packages installed ;;
|
|
||||||
snapshot) ;;
|
|
||||||
source) _deb_packages available ;;
|
|
||||||
start) ((argno==1)) && _wajig_services ;;
|
|
||||||
status) _deb_packages available ;;
|
|
||||||
statusmatch | satussearch) ;; # no completion available
|
|
||||||
stop) ((argno==1)) && _wajig_services ;;
|
|
||||||
tasksel) ;;
|
|
||||||
toupgrade) ;;
|
|
||||||
unhold) _deb_packages held ;;
|
|
||||||
update) ;;
|
|
||||||
updatealts) ((argno==1)) && _wajig_alternatives ;;
|
|
||||||
upgrade) _deb_packages installed ;;
|
|
||||||
whichpkg) _files ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
_wajig() {
|
|
||||||
_arguments -s \
|
|
||||||
'(- 1 *)'{-h,--help}'[print usage message]' \
|
'(- 1 *)'{-h,--help}'[print usage message]' \
|
||||||
'(- 1 *)--version[display version information]' \
|
'(- 1 *)--version[display version information]' \
|
||||||
'(-q --quiet)'{-q,--quiet}'[do everything quietly]' \
|
'(-q --quiet)'{-q,--quiet}'[do everything quietly]' \
|
||||||
'(-s --simulate)'{-s,--simulate}"[trace but don't execute]" \
|
'(-s --simulate)'{-s,--simulate}"[trace but don't execute]" \
|
||||||
'(-t --teaching)'{-t,--teaching}'[trace the sequence of commands performed]' \
|
'(-t --teaching)'{-t,--teaching}'[trace the sequence of commands performed]' \
|
||||||
'(-v --verbose)'{-v,--verbose}'[increase (or set) the level of verbosity]' \
|
'(-v --verbose)'{-v,--verbose}'[increase (or set) the level of verbosity]' \
|
||||||
'1: :_wajig_command' \
|
'1: :->cmds' \
|
||||||
'*: :_wajig_subcommand'
|
'*: :->args' && ret=0
|
||||||
}
|
|
||||||
|
|
||||||
_wajig $@
|
case $state in
|
||||||
|
cmds)
|
||||||
|
cmds=( ${${(M)${(f)"$(wajig commands 2>/dev/null)"}:# [^-]*}/(#b) ([^ ]#) #(*)/$match[1]:$match[2]:l} )
|
||||||
|
|
||||||
|
_describe -t commands 'wajig command' cmds && ret=0
|
||||||
|
;;
|
||||||
|
args)
|
||||||
|
(( argno = $#line-1 ))
|
||||||
|
case ${line[1]:gs/-/} in
|
||||||
|
autoalts|autoalternatives|updatealts)
|
||||||
|
((argno==1)) && _wanted alternatives expl alternative \
|
||||||
|
_files -W /var/lib/dpkg/alternatives && ret=0
|
||||||
|
;;
|
||||||
|
listfiles|repackage|package)
|
||||||
|
((argno==1)) || break
|
||||||
|
;&
|
||||||
|
hold|large|readme|reconfigure|reinstall|remove|removedepend|showremove|size?|upgrade)
|
||||||
|
_wanted package expl 'package' _deb_packages installed && ret=0
|
||||||
|
;;
|
||||||
|
purgedepend)
|
||||||
|
((argno==1)) && _wanted package expl 'package' _deb_packages xinstalled && ret=0
|
||||||
|
;;
|
||||||
|
purge)
|
||||||
|
_wanted package expl 'package' _deb_packages xinstalled && ret=0
|
||||||
|
;;
|
||||||
|
autoinstall|force|showinstall|installr|recommended|installrs|installs|suggested|install/*)
|
||||||
|
_wanted package expl 'package' _deb_packages uninstalled && ret=0
|
||||||
|
;;
|
||||||
|
install)
|
||||||
|
_alternative \
|
||||||
|
'packages:package:_deb_packages uninstalled' \
|
||||||
|
'files:package file:_files -g "*.deb(-.)"' && ret=0
|
||||||
|
;;
|
||||||
|
bug|bugs|dependents|geturl)
|
||||||
|
((argno==1)) || break
|
||||||
|
;&
|
||||||
|
available|build|builddepend|changelog|describe|whatis|detail|details|show|news|policy|download|source|status|recdownload)
|
||||||
|
_wanted package expl 'package' _deb_packages available && ret=0
|
||||||
|
;;
|
||||||
|
unhold)
|
||||||
|
_wanted package expl 'package' _deb_packages held && ret=0
|
||||||
|
;;
|
||||||
|
filedownload|downloadfile|fileinstall|installfile|fileremove|removefile|indfile)
|
||||||
|
((argno==1)) && _files && ret=0
|
||||||
|
;;
|
||||||
|
whichpkg)
|
||||||
|
_files
|
||||||
|
;;
|
||||||
|
rpminstall|rpmtodeb|rpm2deb)
|
||||||
|
((argno==1)) && _files -g '*.rpm(-.)' && ret=0
|
||||||
|
;;
|
||||||
|
searchapt)
|
||||||
|
_wanted distributions expl distribution \
|
||||||
|
compadd stable testing unstable && ret=0
|
||||||
|
;;
|
||||||
|
reload|restart|start|stop)
|
||||||
|
((argno==1)) && _services && ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
|
||||||
|
|
@ -6,16 +6,17 @@ _baz _bison _bittorrent _bogofilter _bzip2
|
||||||
_cal _ccal _cdcd _cdrecord _chkconfig
|
_cal _ccal _cdcd _cdrecord _chkconfig
|
||||||
_chmod _chown _compress _configure _cpio
|
_chmod _chown _compress _configure _cpio
|
||||||
_cvs
|
_cvs
|
||||||
_darcs _dd _dict _diff _du
|
_darcs _dd _dhclient _dict _diff
|
||||||
_dvi _ecasound _elinks _elm _enscript
|
_du _dvi
|
||||||
|
_ecasound _elinks _elm _enscript
|
||||||
_fakeroot _fetchmail _figlet _find _finger
|
_fakeroot _fetchmail _figlet _find _finger
|
||||||
_flex _fortune _fsh _fuser
|
_flex _fortune _fsh _fuser
|
||||||
_gcc _gdb _getconf _getent _global
|
_gcc _gdb _getconf _getent _global
|
||||||
_gnu_generic _gpg _gphoto2 _gprof _grep
|
_gnu_generic _gpg _gphoto2 _gprof _grep
|
||||||
_groff _gs _gzip
|
_groff _gs _gzip
|
||||||
_iconv _ifconfig _imagemagick _init_d _irssi
|
_iconv _ifconfig _imagemagick _init_d _irssi
|
||||||
_ispell _java _joe _killall _knock
|
_ispell _java _joe
|
||||||
_kvno
|
_killall _knock _kvno
|
||||||
_last _less _links _loadkeys _look
|
_last _less _links _loadkeys _look
|
||||||
_lp _ls _lsof _lynx _lzop
|
_lp _ls _lsof _lynx _lzop
|
||||||
_mail _make _man _mencal _mh
|
_mail _make _man _mencal _mh
|
||||||
|
|
@ -24,7 +25,7 @@ _mutt _mysql_utils _mysqldiff
|
||||||
_ncftp _netcat _nice _nmap _nslookup
|
_ncftp _netcat _nice _nmap _nslookup
|
||||||
_pack _patch _pbm _perforce _perl
|
_pack _patch _pbm _perforce _perl
|
||||||
_perldoc _php _pine _postfix _prcs
|
_perldoc _php _pine _postfix _prcs
|
||||||
_printenv _psutils _python
|
_printenv _psutils _pump _python
|
||||||
_raggle _rake _rar _rcs _renice
|
_raggle _rake _rar _rcs _renice
|
||||||
_rlogin _rsync _rubber _ruby
|
_rlogin _rsync _rubber _ruby
|
||||||
_sablotron _samba _sccs _screen _sed
|
_sablotron _samba _sccs _screen _sed
|
||||||
|
|
@ -36,6 +37,6 @@ _tin _tla
|
||||||
_unace _unexpand _uniq _user_admin
|
_unace _unexpand _uniq _user_admin
|
||||||
_vim _vorbis _vux
|
_vim _vorbis _vux
|
||||||
_w3m _webbrowser _wget _whereis _whois
|
_w3m _webbrowser _wget _whereis _whois
|
||||||
_wiggle _xargs _xmlsoft _xscreensaver
|
_wiggle _xargs _xmlsoft
|
||||||
_yodl _yp _zcat _zdump _zip
|
_yodl _yp _zcat _zdump _zip
|
||||||
'
|
'
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,28 @@
|
||||||
#compdef cal ncal
|
#compdef cal ncal
|
||||||
|
|
||||||
local calargs ncalargs
|
local args
|
||||||
|
|
||||||
calargs=('-3[three in a row]'
|
case $service in
|
||||||
'-m[Monday as first day of the week]')
|
cal)
|
||||||
|
args=(
|
||||||
ncalargs=('-J[display Julian calendar]'
|
'-3[three in a row]'
|
||||||
|
'-m[Monday as first day of the week]'
|
||||||
|
)
|
||||||
|
;;
|
||||||
|
ncal)
|
||||||
|
args=(
|
||||||
|
'-J[display Julian calendar]'
|
||||||
'-e[display date of western Easter]'
|
'-e[display date of western Easter]'
|
||||||
'-o[display date of orthodox Easter]'
|
'-o[display date of orthodox Easter]'
|
||||||
'-p[assume as by ncal]'
|
'-p[assume as by ncal]'
|
||||||
'-s[country code]'
|
'-s[country code]'
|
||||||
'-w[print number of the week below each column]')
|
'-w[print number of the week below each column]'
|
||||||
|
)
|
||||||
case $service in
|
|
||||||
(cal)
|
|
||||||
_arguments \
|
|
||||||
"${calargs[@]}" \
|
|
||||||
'-j[display Julian days]' \
|
|
||||||
'-y[display a calendar for the current year]' \
|
|
||||||
'1:month:' \
|
|
||||||
'2:year:'
|
|
||||||
;;
|
|
||||||
(ncal)
|
|
||||||
_arguments \
|
|
||||||
"${ncalargs[@]}" \
|
|
||||||
'-j[display Julian days]' \
|
|
||||||
'-y[display a calendar for the current year]' \
|
|
||||||
'1:month:' \
|
|
||||||
'2:year:'
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
_arguments "${args[@]}" \
|
||||||
|
'-j[display Julian days]' \
|
||||||
|
'-y[display a calendar for the current year]' \
|
||||||
|
'::month' \
|
||||||
|
':year'
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ _arguments \
|
||||||
'-nodata[ignore appointment descriptions file]' \
|
'-nodata[ignore appointment descriptions file]' \
|
||||||
'-data-file=[load appointments from file]:caldat file:_files' \
|
'-data-file=[load appointments from file]:caldat file:_files' \
|
||||||
'-future[show only future appointments on current month]' \
|
'-future[show only future appointments on current month]' \
|
||||||
'-today[show only today'"'"'s appointments on current month]' \
|
"-today[show only today's appointments on current month]" \
|
||||||
'-europe[European format (first day is Monday)]' \
|
'-europe[European format (first day is Monday)]' \
|
||||||
'-american[North American format (first day is Sunday)]' \
|
'-american[North American format (first day is Sunday)]' \
|
||||||
'-maxappts=[display maximum of n appointments]:number of appointments:('{8..50}')' \
|
'-maxappts=[display maximum of n appointments]:number of appointments:('{8..50}')' \
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,28 @@
|
||||||
#compdef dhclient dhclient3
|
#compdef dhclient dhclient3
|
||||||
|
|
||||||
local _dhclient_common_args
|
local args
|
||||||
|
|
||||||
_dhclient_common_args=(
|
|
||||||
'-p[port to transmit to / listen on]:_ports'
|
|
||||||
'-d[force to run in foreground]'
|
|
||||||
':interface:_net_interfaces'
|
|
||||||
)
|
|
||||||
|
|
||||||
if _pick_variant three=V3 two --help; then
|
if _pick_variant three=V3 two --help; then
|
||||||
_arguments \
|
args=(
|
||||||
'-q[quiet]' \
|
'-q[quiet]'
|
||||||
'-1[only try once to get a lease]' \
|
'-1[only try once to get a lease]'
|
||||||
'-r[release the current lease]' \
|
'-r[release the current lease]'
|
||||||
'-lf[lease file]:lease file:_files' \
|
'-lf[lease file]:lease file:_files'
|
||||||
'-pf[pid file]:pid file:_files' \
|
'-pf[pid file]:pid file:_files'
|
||||||
'-cf[config file]:config file:_files' \
|
'-cf[config file]:config file:_files'
|
||||||
'-sf[script file]:script file:_files' \
|
'-sf[script file]:script file:_files'
|
||||||
'-e[env vars to pass to child processes]:env var key value pairs:' \
|
'-e[env vars to pass to child processes]:env var key value pairs:'
|
||||||
'-s[transmit to specific target instead of broadcast]:server:_hosts' \
|
'-s[transmit to specific target instead of broadcast]:server:_hosts'
|
||||||
'-g[force giaddr field]:relay:_hosts' \
|
'-g[force giaddr field]:relay:_hosts'
|
||||||
'-n[do not configure any interfaces]' \
|
'-n[do not configure any interfaces]'
|
||||||
'-nw[daemonize immediately rather than wait for IP acquisition]' \
|
'-nw[daemonize immediately rather than wait for IP acquisition]'
|
||||||
'-w[do not exit if there are no interfaces found to configure]' \
|
'-w[do not exit if there are no interfaces found to configure]'
|
||||||
"$_dhclient_common_args[@]"
|
)
|
||||||
else
|
else
|
||||||
_arguments \
|
args=( '-e[exit if configuration failed after a certain time]' )
|
||||||
'-e[Exit if configuration failed after a certain time]' \
|
|
||||||
"$_dhclient_common_args[@]"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_arguments $args \
|
||||||
|
'-p[port to transmit to / listen on]:_ports' \
|
||||||
|
'-d[force to run in foreground]' \
|
||||||
|
':interface:_net_interfaces'
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ _arguments \
|
||||||
'-e[consider all fortune files to be of equal size]' \
|
'-e[consider all fortune files to be of equal size]' \
|
||||||
'-f[print out the list of files which would be searched]' \
|
'-f[print out the list of files which would be searched]' \
|
||||||
'-l[long dictums only]' \
|
'-l[long dictums only]' \
|
||||||
'-m[print all matches to regex]:BRE:' \
|
'-m[print all matches to regex]:BRE' \
|
||||||
'-n[set longest length to be short]:length:' \
|
'-n[set longest length to be short]:length' \
|
||||||
'-o[choose only from potentially offensive aphorisms]' \
|
'-o[choose only from potentially offensive aphorisms]' \
|
||||||
'-s[short apothegms only]' \
|
'-s[short apothegms only]' \
|
||||||
'-i[ignore case for -m patterns]' \
|
'-i[ignore case for -m patterns]' \
|
||||||
'-w[wait before termination for a time based on msg length]' \
|
'-w[wait before termination for a time based on msg length]' \
|
||||||
'*:databases:'
|
'*:databases'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
#compdef mencal
|
#compdef mencal
|
||||||
|
|
||||||
_arguments \
|
local curcontext="$curcontext" state line ret=1
|
||||||
|
|
||||||
|
_arguments -C \
|
||||||
'(--monday -m)'{-m,--monday}'[monday as first day of work]' \
|
'(--monday -m)'{-m,--monday}'[monday as first day of work]' \
|
||||||
'-1[current month]' \
|
'-1[current month]' \
|
||||||
'-3[previous, current, and next month]' \
|
'-3[previous, current, and next month]' \
|
||||||
|
|
@ -8,23 +10,18 @@ _arguments \
|
||||||
'(--quiet -q)'{-q,--quiet}'[no top information]' \
|
'(--quiet -q)'{-q,--quiet}'[no top information]' \
|
||||||
'(--nocolor -n)'{-n,--nocolor}'[noncolored output]' \
|
'(--nocolor -n)'{-n,--nocolor}'[noncolored output]' \
|
||||||
'(--icolor -i)'{-i,--icolor}'[intersection color]:color:(red green blue yellow violet cyan shiny bold)' \
|
'(--icolor -i)'{-i,--icolor}'[intersection color]:color:(red green blue yellow violet cyan shiny bold)' \
|
||||||
'(--help -h)'{-h,--help}'[help]' \
|
'(-)'{-h,--help}'[display help informaiton]' \
|
||||||
'(--version -V)'{-V,--version}'[print version info]' \
|
'(-)'{-V,--version}'[print version information]' \
|
||||||
'(--config -c)*'{-c,--config}'[config]:options:->option' && ret=0
|
\*{-c,--config}'[config]:options:->option' && ret=0
|
||||||
|
|
||||||
while [[ -n "$state" ]]; do
|
if [[ $state = option ]]; do
|
||||||
lstate="$state"
|
|
||||||
state=''
|
|
||||||
|
|
||||||
case "$lstate" in
|
|
||||||
(option)
|
|
||||||
_values -s , 'config option' \
|
_values -s , 'config option' \
|
||||||
'(s start)'{s,start}'[start day]:' \
|
'(s start)'{s,start}'[start day]:day' \
|
||||||
'(l length)'{l,length}'[period length]:' \
|
'(l length)'{l,length}'[period length]:length' \
|
||||||
'(d duration)'{d,duration}'[menstruation duration]:' \
|
'(d duration)'{d,duration}'[menstruation duration]:duration' \
|
||||||
'(n name)'{n,name}'[name of subject]:' \
|
'(n name)'{n,name}'[name of subject]:name' \
|
||||||
'(f file)'{f,file}'[filename]:_files' \
|
'(f file)'{f,file}'[filename]:file:_files' \
|
||||||
'(c color)'{c,color}'[color for menstruation days]:color:(red green blue yellow violet cyan shiny bold)'
|
'(c color)'{c,color}'[color for menstruation days]:color:(red green blue yellow violet cyan shiny bold)' && ret=0
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
done
|
return ret
|
||||||
|
|
|
||||||
|
|
@ -1410,10 +1410,10 @@ _perforce_cmd_attribute() {
|
||||||
# If -f is present, search unopened files, else don't
|
# If -f is present, search unopened files, else don't
|
||||||
[[ ${words[(I)-f]} -eq 0 ]] && limit=" -to"
|
[[ ${words[(I)-f]} -eq 0 ]] && limit=" -to"
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
'-e[Value is in hex]' \
|
'-e[value is in hex]' \
|
||||||
'-f[Set the attribute on a submitted file]' \
|
'-f[set the attribute on a submitted file]' \
|
||||||
'-n[Set name of attribute]:attribute: ' \
|
'-n[set name of attribute]:attribute: ' \
|
||||||
'-v[Set value of attribute]:value: ' \
|
'-v[set value of attribute]:value: ' \
|
||||||
"*::file:_perforce_files$limit"
|
"*::file:_perforce_files$limit"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1653,7 +1653,7 @@ _perforce_cmd_fstat() {
|
||||||
if [[ ${_perforce_cmd_list[(r)attribute:*]} != '' ]]; then
|
if [[ ${_perforce_cmd_list[(r)attribute:*]} != '' ]]; then
|
||||||
# Unsupported feature, try not to show if not present
|
# Unsupported feature, try not to show if not present
|
||||||
Oattr=' a\:show\ attributes d\:attributes\ digest e\:attributes\ in\ hex'
|
Oattr=' a\:show\ attributes d\:attributes\ digest e\:attributes\ in\ hex'
|
||||||
Aattr='-A[Restrict attributes by pattern]:attribute pattern: '
|
Aattr='-A[restrict attributes by pattern]:attribute pattern: '
|
||||||
fi
|
fi
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
'-c+[affected since change]:change:_perforce_changes -ts' \
|
'-c+[affected since change]:change:_perforce_changes -ts' \
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
#compdef pump
|
#compdef pump
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-c --config-file=)'{-c,--config-file=}'[Configuratio file to use]:Configuratio file to use:_files' \
|
'(-c --config-file=)'{-c,--config-file=}'[specify configuration file to use]:configuration file:_files' \
|
||||||
'(-h --hostname=)'{-h,--hostname=}'[Hostname to request]:Hostname:_hosts' \
|
'(-h --hostname=)'{-h,--hostname=}'[specify hostname to request]:hostname:_hosts' \
|
||||||
'(-i --interface=)'{-i,--interface=}'[Interface to configure]:Interface:_net_interfaces' \
|
'(-i --interface=)'{-i,--interface=}'[specify interface to configure]:interface:_net_interfaces' \
|
||||||
'(-k --kill)'{-k,--kill}'[Kill daemon (and disable all interfaces)]' \
|
'(-k --kill)'{-k,--kill}'[kill daemon (and disable all interfaces)]' \
|
||||||
'(-l --lease=)'{-l,--lease=}'[Lease time to request (in hours)]' \
|
'(-l --lease=)'{-l,--lease=}'[specify lease time to request]:time (hours)' \
|
||||||
'(-L --leasesecs=)'{-L,--leasesecs=}'[Lease time to request (in seconds)]' \
|
'(-L --leasesecs=)'{-L,--leasesecs=}'[specify seconds to request for]:time (seconds)]' \
|
||||||
'(-r --release)'{-r,--release}'[Release interface]:Interface:_net_interfaces' \
|
'(-r --release)'{-r,--release}'[release interface]:interface:_net_interfaces' \
|
||||||
'(-R --renew)'{-R,--renew}'[Force immediate lease renewal]:Interface:_net_interfaces' \
|
'(-R --renew)'{-R,--renew}'[force immediate lease renewal]:interface:_net_interfaces' \
|
||||||
'(-v --verbose)'{-v,--verbose}'[Log verbose debug info]' \
|
'(-v --verbose)'{-v,--verbose}'[log verbose debug info]' \
|
||||||
'(-s --status)'{-s,--status}'[Display interface status]:Interface:_net_interfaces' \
|
'(-s --status)'{-s,--status}'[display interface status]:interface:_net_interfaces' \
|
||||||
'(-d --no-dns)'{-d,--no-dns}"[Don't update resolv.conf]" \
|
'(-d --no-dns)'{-d,--no-dns}"[don't update resolv.conf]" \
|
||||||
'(-? --help)'{-?,--help}'[Display help message]' \
|
'(- *)'{-?,--help}'[display help information]' \
|
||||||
"--no-gateway[Don't set a gateway for this interface]" \
|
"--no-gateway[don't set a gateway for this interface]" \
|
||||||
"--no-setup[Don't set up anything]" \
|
"--no-setup[don't set up anything]" \
|
||||||
"--no-resolvconf[Don't set up resolvconf]" \
|
"--no-resolvconf[don't set up resolvconf]" \
|
||||||
'--no-bootp[Ignore non-DHCP BOOTP responses]' \
|
'--no-bootp[ignore non-DHCP BOOTP responses]' \
|
||||||
'--lookup-hostname[Force lookup of hostname]' \
|
'--lookup-hostname[force lookup of hostname]' \
|
||||||
'--script=[Script to use]:Script to use:_files' \
|
'--script=[specify script to use]:script:_files' \
|
||||||
"--win-client-ident[Set the client identifier to match Window's]" \
|
"--win-client-ident[set the client identifier to match window's]" \
|
||||||
'--usage[Display brief usage message]' \
|
'--usage[display brief usage message]' \
|
||||||
':Interface:_net_interfaces'
|
':interface:_net_interfaces'
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,6 @@ _gnome-gv _gqview _gv _kfmclient
|
||||||
_mozilla _mplayer _nedit _netscape
|
_mozilla _mplayer _nedit _netscape
|
||||||
_qiv _urxvt _vnc
|
_qiv _urxvt _vnc
|
||||||
_x_utils _xauth _xdvi _xfig _xloadimage
|
_x_utils _xauth _xdvi _xfig _xloadimage
|
||||||
_xmodmap _xpdf _xset _xterm _xv
|
_xmodmap _xpdf _xscreensaver _xset _xterm
|
||||||
_xwit
|
_xv _xwit
|
||||||
'
|
'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue