docs(readme): document templates/ and add it to CI paths
Claude-Session: https://claude.ai/code/session_015eE4sQqrZ8yKGkTMf58shs
This commit is contained in:
@@ -15,6 +15,7 @@ on:
|
|||||||
- "config.fish"
|
- "config.fish"
|
||||||
- "completions/**"
|
- "completions/**"
|
||||||
- "integrations/**"
|
- "integrations/**"
|
||||||
|
- "templates/**"
|
||||||
- "tests/**"
|
- "tests/**"
|
||||||
- "scripts/**"
|
- "scripts/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -82,7 +83,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
git fetch origin "${{ github.event.pull_request.base.ref }}"
|
git fetch origin "${{ github.event.pull_request.base.ref }}"
|
||||||
if git diff --name-only "origin/${{ github.event.pull_request.base.ref }}...HEAD" \
|
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"
|
echo "run=true" >>"$GITHUB_OUTPUT"
|
||||||
else
|
else
|
||||||
echo "run=false" >>"$GITHUB_OUTPUT"
|
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`.
|
`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
|
## Minimal Mode
|
||||||
|
|||||||
Reference in New Issue
Block a user