feat(templates): add allow-telemetry wrapper template #182

Merged
rootiest merged 4 commits from feat/templates-allow-telemetry into main 2026-09-29 08:38:16 +00:00
2 changed files with 10 additions and 1 deletions
Showing only changes of commit b1784c65fc - Show all commits
+2 -1
View File
@@ -15,6 +15,7 @@ on:
- "config.fish"
- "completions/**"
- "integrations/**"
- "templates/**"
- "tests/**"
- "scripts/**"
pull_request:
@@ -82,7 +83,7 @@ jobs:
fi
git fetch origin "${{ github.event.pull_request.base.ref }}"
if git diff --name-only "origin/${{ github.event.pull_request.base.ref }}...HEAD" \
| grep -qE '^(docs/manual/|docs/build-manual\.py$|docs/manualtools\.py$|docs/verify-manual\.py$|docs/site/|functions/|conf\.d/|config\.fish$|completions/|integrations/|tests/|scripts/)'; then
| grep -qE '^(docs/manual/|docs/build-manual\.py$|docs/manualtools\.py$|docs/verify-manual\.py$|docs/site/|functions/|conf\.d/|config\.fish$|completions/|integrations/|templates/|tests/|scripts/)'; then
echo "run=true" >>"$GITHUB_OUTPUT"
else
echo "run=false" >>"$GITHUB_OUTPUT"
+8
View File
@@ -321,6 +321,14 @@ To opt out, set `__fish_user_dots_symlink` to a falsy value (or toggle **Dots li
`fish_variables` (which fish auto-manages and may contain universal variable state) is excluded from this repo via `.gitignore`.
### Function templates
`templates/` holds starting points for your own functions. Each one has a short settings block at the top; edit it and save the file as `<name>.fish` in a directory on `$fish_function_path`.
| Template | Purpose |
|---|---|
| `allow-telemetry.fish` | Wrap one command and remove environment variables (default: `DO_NOT_TRACK`, `DISABLE_TELEMETRY`) from that command's process only |
---
## Minimal Mode