ZSYS: zsysctl(1) ZSYS: zsysctl(1)

zsysctl-completion - Generates completion scripts (will attempt to automatically detect shell)

zsysctl completion [bash|zsh|powershell] [flags]

To load completions: NOTE: When shell type isn't defined shell will be automatically identified based on the $SHELL environment vairable

Bash:

source <(zsysctl completion bash)
# To load completions for each session, execute once:
# Linux:
zsysctl completion bash > /etc/bash_completion.d/zsysctl
# macOS:
zsysctl completion bash > /usr/local/etc/bash_completion.d/zsysctl

Zsh:

# If shell completion is not already enabled in your environment,
# you will need to enable it.  You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
# To load completions for each session, execute once:
zsysctl completion zsh > "${fpath[1]}/_zsysctl"
# You will need to start a new shell for this setup to take effect.

PowerShell:

zsysctl completion powershell | Out-String | Invoke-Expression
# To load completions for every new session, run:
zsysctl completion powershell > zsysctl.ps1
# and source this file from your PowerShell profile.

-h, --help[=false] help for completion

-v, --verbose[=0] issue INFO (-v) and DEBUG (-vv) output

zsysctl(1)

24-Oct-2024 Auto generated by spf13/cobra

Oct 2024 Auto generated by spf13/cobra