CyberQin/dsh-ohos-shell ↗★ 0

dsh-ohos-shell

为鸿蒙环境下的子进程配置zsh环境 仅限HarmonyOS/OpenHarmony。适合在该系统下开发并需优化终端体验的用户。

包名
dsh-ohos-shell
兼容性
待验证
Harness 依赖范围
^0.2.0-rc.2
Cordis 依赖范围
^4.0.4
版本
1.1.0
许可证
MIT
最近更新
2026年10月10日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CyberQin/dsh-ohos-shell

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 报告不准的构建与自测。
VariableEffect
OHOS_SHELLForces the absolute path of a shell. The value off leaves SHELL alone.
OHOS_BREW_PREFIXSets the harmonybrew prefix and skips auto-detection.
OHOS_ZSH_FUNCTIONSThe value off stops this package from putting its zsh-functions/ on FPATH.
OHOS_FORCEOverrides the platform verdict: 1 means HarmonyOS, 0 means not. Use it for a build that misreports process.platform, and for the self-tests.