Skip to content

install.sh 脚本安装后提示不够明确,用户容易遗漏 source 步骤 #110

@Miss-you

Description

@Miss-you

问题描述

使用 install.sh 安装 kimi-code 后,虽然脚本提示了 Restart your shell or run: source ~/.zshrc,但用户在当前 shell 直接运行 kimi 时仍然会报 command not found

如图所示,安装完成后直接执行 kimi 命令报错:

zsh: command not found: kimi

建议改进

建议在 install.sh 脚本安装结束后,主动检测 kimi 命令是否已经在当前 shell 的 PATH 中可用。如果不可用,给出更明确的提示,例如:

if ! command -v kimi >/dev/null 2>&1; then
    echo "kimi installed, but current shell PATH has not been refreshed."
    echo "Run: source ~/.zshrc"
    echo "Then: kimi --version"
fi

这样可以避免用户误以为安装失败,提升首次安装体验。

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions