Skip to main content

host-notes

Use when binding a service or dev server on the nspawn host, or when a Bash tool command on the Mac loses a temp file, reads an empty pipeline status, or masks a background exit code.

来源信息

仓库
davesnx/setup
最近来源活动
2026年10月15日 12:23
检测到的 SKILL.md 语言
英语
星标
11
Forks
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
host-notes
description
Use when binding a service or dev server on the nspawn host, or when a Bash tool command on the Mac loses a temp file, reads an empty pipeline status, or masks a background exit code.
## nspawn services When `systemd-detect-virt --container` returns `systemd-nspawn`, bind a service to `0.0.0.0` on an unused port from `25000-25099`. Reach it at `febox-uk.ahrefs.net:<port>` while the VPN is on. ## Bash tool on the Mac - Commands in the sandbox `excludedCommands` setting, such as `make`, `git`, `gh`, and `docker`, run outside the sandbox and see the system `$TMPDIR`. Write a file that another command must read to the session scratchpad or the repository, not to `$TMPDIR`. - Let a background command's exit code reach the task; do not append an `echo` that masks it. - The Bash tool shell is zsh, so `$PIPESTATUS` is empty. Use `$pipestatus[1]` or `set -o pipefail` to check a pipeline's exit code.
在 GitHub 查看