dsh-ohos-shell
HarmonyOS/OpenHarmony only: give every Harness child process the harmonybrew environment, supply the zsh functions the OHOS zsh packaging omits, and default the Web sidebar terminal to zsh instead of mksh. 仅限HarmonyOS/OpenHarmony。适合在该系统下开发并需优化终端体验的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CyberQin/dsh-ohos-shellドキュメント
README 全文を読む ↗6 配置 / Configuration
本包不需要 config 行。四个环境变量覆盖值得改动的场景。主进程在激活时读取它们。
This package needs no config row. Four environment variables cover the cases that are worth a change. The host process reads them at activation.
| 变量 | 作用 |
|---|---|
OHOS_SHELL | 强制指定 shell 的绝对路径;设为 off 则不改动 SHELL。 |
OHOS_BREW_PREFIX | 直接指定 harmonybrew 前缀,跳过自动探测。 |
OHOS_ZSH_FUNCTIONS | 设为 off 时,本包不把自己的 zsh-functions/ 放进 FPATH。 |
OHOS_FORCE | 覆盖平台判定:1 视为鸿蒙,0 视为非鸿蒙。用于 process.platform 报告不准的构建与自测。 |
| Variable | Effect |
|---|---|
OHOS_SHELL | Forces the absolute path of a shell. The value off leaves SHELL alone. |
OHOS_BREW_PREFIX | Sets the harmonybrew prefix and skips auto-detection. |
OHOS_ZSH_FUNCTIONS | The value off stops this package from putting its zsh-functions/ on FPATH. |
OHOS_FORCE | Overrides the platform verdict: 1 means HarmonyOS, 0 means not. Use it for a build that misreports process.platform, and for the self-tests. |