xops completion zsh
以下列出命令用法和可用选项。已安装版本支持的参数以 --help 为准。
text
Generate the autocompletion script for the zsh shell.
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 in your current shell session:
source <(xops completion zsh)
To load completions for every new session, execute once:
#### Linux:
xops completion zsh > "${fpath[1]}/_xops"
#### macOS:
xops completion zsh > $(brew --prefix)/share/zsh/site-functions/_xops
You will need to start a new shell for this setup to take effect.
Usage:
xops completion zsh [flags]
Flags:
-h, --help help for zsh
--no-descriptions disable completion descriptions
Global Flags:
--color string ANSI 颜色输出 (auto=自动检测管道/重定向, never=禁用, always=强制启用)
--debug 开启调试模式 (等同于 --log-level=debug)
--lang string 界面语言 (zh/en)
--log-level string 设置内部诊断日志级别 (debug, info, warn, error)