为 zsh 生成自动完成脚本
Synopsis
为 zsh Shell 生成自动完成脚本。
如果您的环境中尚未启用 shell 完成,则需要将其启用。 您可以执行一次以下操作:
echo "autoload -U compinit; compinit" >> ~/.zshrc要在当前 Shell 会话中加载补全:
source <(agentengine completion zsh)要为每个新会话加载完成,请执行一次:
Linux:
agentengine completion zsh > "${fpath[1]}/_agentengine"macOS:
agentengine completion zsh > $(brew --prefix)/share/zsh/site-functions/_agentengine您需要启动新的 shell 才能使此设置生效。
agentengine completion zsh [flags]选项
-h, --help help for zsh --no-descriptions disable completion descriptions从父命令继承的选项
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)另请参阅
- agentengine completion - 为指定 shell 生成自动完成脚本