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

feature-request... add zsh completions for sysctl per man page for sysctl -N #10

Open
porteusconf opened this issue Sep 29, 2022 · 0 comments

Comments

@porteusconf
Copy link

The man sysctl for argument -N says:

 -N      Show only variable names, not their values.  This is particularly
         useful with shells that offer programmable completion.  To enable
         completion of variable names in zsh(1) (ports/shells/zsh), use the
         following code:
                   listsysctls () { set -A reply $(sysctl -AN ${1%.*}) }
                   compctl -K listsysctls sysctl

I am trying to figure out how to do this and will update here if if a PR does not beat me to it. (I am more a basher, new to zsh and oh-my-zsh) ;-)

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

No branches or pull requests

1 participant