Compare commits
2
Commits
main
...
e624744555
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e624744555
|
||
|
|
30d0fdf9c8
|
@@ -110,5 +110,5 @@ toggle state:
|
|||||||
A function's own doc header records which of these it depends on: see the
|
A function's own doc header records which of these it depends on: see the
|
||||||
`CLASSIFICATION` label (`uses-shadow(...)` / `bypasses-shadow(...)`),
|
`CLASSIFICATION` label (`uses-shadow(...)` / `bypasses-shadow(...)`),
|
||||||
documented in full at
|
documented in full at
|
||||||
[`docs/function-classification-schema.md`](../../function-classification-schema.md).
|
[`docs/function-classification-schema.md`](https://git.rootiest.dev/rootiest/fish-config/src/branch/main/docs/function-classification-schema.md).
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
# having no backup at all.
|
# having no backup at all.
|
||||||
#
|
#
|
||||||
# When <link> is an existing real directory, its contents are copied into
|
# When <link> is an existing real directory, its contents are copied into
|
||||||
# <target> without clobbering (cp -n) before the directory is replaced by
|
# <target> without clobbering (cp --update=none) before the directory is replaced by
|
||||||
# the link, so adopting a populated live directory never overwrites the
|
# the link, so adopting a populated live directory never overwrites the
|
||||||
# copy already in the vault.
|
# copy already in the vault.
|
||||||
#
|
#
|
||||||
@@ -60,7 +60,7 @@ function _agents_repo_ensure_symlink --argument-names link target
|
|||||||
else if test -d "$link"
|
else if test -d "$link"
|
||||||
set -l contents (command ls -A "$link" 2>/dev/null)
|
set -l contents (command ls -A "$link" 2>/dev/null)
|
||||||
if test (count $contents) -gt 0
|
if test (count $contents) -gt 0
|
||||||
command cp -rn "$link/." "$target/"; or return 1
|
command cp -r --update=none "$link/." "$target/"; or return 1
|
||||||
end
|
end
|
||||||
rm -rf "$link"; or return 1
|
rm -rf "$link"; or return 1
|
||||||
else if test -e "$link"
|
else if test -e "$link"
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ function agents-init --description 'scaffold AGENTS/ sub-repo with agent spec fi
|
|||||||
set -l rel (string replace "$root/" "" "$src")
|
set -l rel (string replace "$root/" "" "$src")
|
||||||
set -l contents (command ls -A "$src" 2>/dev/null)
|
set -l contents (command ls -A "$src" 2>/dev/null)
|
||||||
if test (count $contents) -gt 0
|
if test (count $contents) -gt 0
|
||||||
if not command cp -rn "$src/." "$canonical/"
|
if not command cp -r --update=none "$src/." "$canonical/"
|
||||||
echo "$c_err""Error: could not merge $rel → AGENTS/$tgt$c_reset" >&2
|
echo "$c_err""Error: could not merge $rel → AGENTS/$tgt$c_reset" >&2
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
@@ -437,7 +437,7 @@ function agents-init --description 'scaffold AGENTS/ sub-repo with agent spec fi
|
|||||||
test -d "$devlogs_dir"; or mkdir -p "$devlogs_dir"
|
test -d "$devlogs_dir"; or mkdir -p "$devlogs_dir"
|
||||||
set -l contents (command ls -A "$docs_devlogs" 2>/dev/null)
|
set -l contents (command ls -A "$docs_devlogs" 2>/dev/null)
|
||||||
if test (count $contents) -gt 0
|
if test (count $contents) -gt 0
|
||||||
if not command cp -rn "$docs_devlogs/." "$devlogs_dir/"
|
if not command cp -r --update=none "$docs_devlogs/." "$devlogs_dir/"
|
||||||
echo "$c_err""Error: could not copy docs/devlogs → AGENTS/devlogs$c_reset" >&2
|
echo "$c_err""Error: could not copy docs/devlogs → AGENTS/devlogs$c_reset" >&2
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -893,7 +893,7 @@ function agents-vault --description 'track curated agent memory in a host-scoped
|
|||||||
if test -n "$stash"
|
if test -n "$stash"
|
||||||
test -f "$stash/origin"
|
test -f "$stash/origin"
|
||||||
and command cat "$stash/origin" >>"$entry/origin" 2>/dev/null
|
and command cat "$stash/origin" >>"$entry/origin" 2>/dev/null
|
||||||
command cp -rn "$stash/." "$entry/" 2>/dev/null
|
command cp -r --update=none "$stash/." "$entry/" 2>/dev/null
|
||||||
rm -rf "$stash"
|
rm -rf "$stash"
|
||||||
end
|
end
|
||||||
printf 'renamed: %s → %s (%s)\n' "$prev_slug" "$slug" (date -I) >>"$entry/origin"
|
printf 'renamed: %s → %s (%s)\n' "$prev_slug" "$slug" (date -I) >>"$entry/origin"
|
||||||
|
|||||||
Reference in New Issue
Block a user