Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added completion for _nl #250

Merged
merged 3 commits into from Aug 21, 2014
Merged

Added completion for _nl #250

merged 3 commits into from Aug 21, 2014

Conversation

RobSis
Copy link
Contributor

@RobSis RobSis commented Aug 5, 2014

Just a simple completion function for nl command (part of coreutils).

Feel free to discard, but please tell me why!

)

_arguments -C -s -S \
{-b+,--body-numbering=}'[use STYLE for \[numbering body\] lines]:style:->style' \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\[numbering body\] need this brackets?

Mandatory arguments to long options are mandatory for short options too.
  -b, --body-numbering=STYLE      use STYLE for numbering body lines
  -d, --section-delimiter=CC      use CC for separating logical pages
  -f, --footer-numbering=STYLE    use STYLE for numbering footer lines
               :
               :

@RobSis
Copy link
Contributor Author

RobSis commented Aug 21, 2014

@hhatto: \[numbering body\] need this brackets?
Nope. They just were in coreutils 8.13 help text... Removed now.

Btw, your genzshcomp project inspired be to write https://github.com/RobSis/zsh-completion-generator.
You might like it :)

@hhatto
Copy link
Member

hhatto commented Aug 21, 2014

LGTM

Btw, your genzshcomp project inspired be to write https://github.com/RobSis/zsh-completion-generator.
You might like it :)

👍 I’ll see what I can use.

Thanks

hhatto added a commit that referenced this pull request Aug 21, 2014
@hhatto hhatto merged commit e5112fa into zsh-users:master Aug 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants