Skip to main content

Automatic generated to zsh completion function, for Python's Option Parser Modules.

Project description

About

Automatic generate to Zsh Completion Function from Python’s Option Parser Modules.

Now, It corresponds to argparse module and optparse module.

I write this module because I want to be created grin command’s Zsh Completion Function.

Install

used to pip:

$ pip install genzshcomp

used to easy_install:

$ easy_install genzshcomp

Require

  • Python2.6+

Usage

show example dir…

basic usage:

## gen.py
from genzshcomp import ZshCompletionGenerator
from optparse import OptionParser
parser = OptionParser()
generator = ZshCompletionGenerator(command_name, parser)
print generator.get()

and zsh completion setups:

$ python gen.py > ~/.zsh/comp/_command
$ echo "fpath=(~/.zsh/comp/ $fpath)" >> ~/.zshrc
$ echo "autoload -U ~/.zsh/comp/*(:t)" >> ~/.zshrc
$ echo "autoload -Uz compinit >> ~/.zshrc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genzshcomp-0.0.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

genzshcomp-0.0.4-py2.6.egg (4.3 kB view details)

Uploaded Source

File details

Details for the file genzshcomp-0.0.4.tar.gz.

File metadata

  • Download URL: genzshcomp-0.0.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for genzshcomp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7d1bb9fd775b683d68ccb5d9c0ebdceb93dbd0b37fad638efc9d1669b2f03f31
MD5 0d4d87fe177975e860baf284fb289f6d
BLAKE2b-256 344193c14759331ef3f2f6a095bba5f55cc488bc8bfcb0d5e62251d7b0f3844a

See more details on using hashes here.

File details

Details for the file genzshcomp-0.0.4-py2.6.egg.

File metadata

File hashes

Hashes for genzshcomp-0.0.4-py2.6.egg
Algorithm Hash digest
SHA256 e656abc0804cf3d068db1621ce42d4a44103360d7763dfc4dbac7f639260f209
MD5 b9382109f85d83214af0db08bfe29211
BLAKE2b-256 a81f088cd493f3d88c21deddcebec2a4dc4161c729178529a8cb0d862982bfb4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page