gausszhou/dsh-where-am-i ↗★ 0

@gausszhou/dsh-where-am-i

在每个新会话注入一次类 neofetch 的设备信息块。 适合希望代理了解本机环境的用户;仅新会话生效,安装后需重启。

包名
@gausszhou/dsh-where-am-i
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年8月23日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:gausszhou/dsh-where-am-i

Usage

Install into a dsh profile (once published, by package name):

dsh plugin --profile web add "@gausszhou/dsh-where-am-i"

For local development use a link dependency (same pattern as dsh-opencode-session-id): add "@gausszhou/dsh-where-am-i": "link:/home/gauss/Code/gausszhou/dsh-where-am-i" to ~/.dsh/profiles/web/package.json dependencies and list it in dsh.profile.bundles; the plugin's own cordis.patch.yml (via dsh.bundle.patch) performs the insert.

After installing, restart dsh web (systemctl --user restart dsh-web) so the bundle takes effect. Zero configuration needed.

Configuration

All options are optional, with the defaults shown:

KeyDefaultMeaning
fieldsall 13emit only the listed field lines, in the default order, e.g. [os, arch, timezone]; unknown names are dropped; an empty-after-filter list falls back to all
includeSubagentsfalsewhen true, also inject into subagent sessions (skipped by default to avoid repeating per fan-out)
verbosefalseprint the injected snapshot to stdout (visible via journalctl -u dsh-web on a web deployment)

Field list (emission order): host user os kernel arch cpu memory uptime timezone locale shell term node. Fields that cannot be sampled (e.g. shell on Windows without a SHELL variable) are omitted automatically.