Skip to content

Instantly share code, notes, and snippets.

@syohex
Created October 8, 2012 03:40
Show Gist options
  • Save syohex/3850606 to your computer and use it in GitHub Desktop.
Save syohex/3850606 to your computer and use it in GitHub Desktop.
Completion paco in zsh
#compdef paco
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for paco
#
# Source: http://paco.sourceforge.net/
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Syohei Yoshida ([email protected])
#
# ------------------------------------------------------------------------------
_arguments -s -S \
'(--all -a)'{--all,-a}'[Apply the specified action to all logged packages]' \
'(--help -h)'{--help,-h}'[Display a help message and exit]' \
'(--logdir,-L)'{--logdir,-L}'[Base log directory]' \
'(--verbose,-v)'{--verbose,-v}'[Verbose output]' \
'--version,[Display Version]' \
'(--update,-u)'{--update,-u}'[Synchronize current status]' \
'(--unlog,-U)'{--unlog,-U}'[Remove the log of the package from the database]' \
'(--block-size,-b)'{--block-size,-b}'[Use blocks of size bytes]' \
'(--kilobytes,-k)'{--kilobytes,-k}'[Like --blocksize=1k]' \
'--sort=WORD[sort the list by WORD]' \
'(--reverse,-R)'{--reverse,-R}'[Reverse order while sorting]' \
'(--total,-t)'{--total,-t}'[Print totals at the bottom of the list]' \
'(--one-colomn,-1)'{--one-colomn,-1}'[List one package per line]' \
'-F[Print the number of installed files]' \
'-M[Print the number of missing files]' \
'-C[Print the number of shared files]' \
'(--date,-d)'{--date,-d}'[Show installation date]' \
'(--size,-s)'{--size,-s}'[Show the currently installed size of each packages]' \
'(--missing-size,-n)'{--missing-size,-n}'[Print the missing size of each package]' \
'(--files,-f)'{--files,-f}'[List currently installed files of the package]' \
'(--missing-files,-m)'{--missing-files,-m}'[List missing files]' \
'(--shared,-c)'{--shared,-c}'[list only shared files]' \
'(--non-shared,-N)'{--non-shared,-N}'[list only the non shared files]' \
'(--who-shares,-w)'{--who-shares,-w}'[print name of packages that share each file]' \
'(--symlinks,-y)'{--symlinks,-y}'[Print the contensts of symbolic links]' \
'(--size,-s)'{--size,-s}'[Print the size of each file]' \
'(--no-package-name,-z)'{--no-package-name,-z}'[Do not print the name of package]' \
'(--info,-i)'{--info,-i}'[Print package information]' \
'(--configure-options,-o)'{--configure-options,-c}'[Print the configure options]' \
'(--query,-q)'{--query,-q}'[Query for the packages]' \
'(--log,-l)'{--log,-l}'[Enable log mode]' \
'(--package,-p)'{--package,-p}'[Query for the packages]' \
'(--query,-q)'{--query,-q}'[Query for the packages]' \
'(--log,-l)'{--log,-l}'[Enable log mode]' \
'(--package,-p)'{--package,-p}'[Specify the package name]' \
'(--dirname,-D)'{--dirname,-D}'[Use the name of current directory]' \
'(--exclude,-e)'{--exclude,-e}'[Specify exclude pathes]' \
'(--include,-i)'{--include,-i}'[Specify include pathes]' \
'--ignore-errors[ignore errors]' \
'--log-missing[Log also missing files]' \
'(--append,-+)'{--append,-+}'[append files]' \
'(--remove,-r)'{--remove,-r}'[Remove the package]' \
'(--batch,-B)'{--batch,-b}'[Do not prompt]' \
'(--skip,-e)'{--skip,-e}'[Do not remove the path]' \
'--remove-shared[Remove also the shared files]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment