feat(templates): add allow-telemetry wrapper template #182
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user