completion zsh

limactl completion zsh

为 zsh 生成自动补全脚本

概述

为 zsh shell 生成自动补全脚本。

如果 zsh 补全尚未启用,请运行:

echo "autoload -U compinit; compinit" >> ~/.zshrc

要在当前会话中加载补全:

source <(limactl completion zsh)

要为每个新会话配置 zsh 补全,请执行一次:

limactl completion zsh > "${fpath[1]}/_limactl"

注意:需要在 $fpath 中的目录启动新的 shell 会话以使补全生效。

limactl completion zsh

选项

  -h, --help   help for zsh

从父命令继承的选项

      --debug               调试模式
      --log-format string   设置日志格式 [text, json] (default "text")
      --log-level string    设置日志级别 [trace, debug, info, warn, error]
      --tty                 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
  -y, --yes                 --tty=false 的别名

另请参见