[MAC] Update Claude/Codex plugins and skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
37ed5cad6d
commit
2259738f4a
3 files changed
+19
-2
No files matched your search
@@ -66,11 +66,28 @@ function update_others {
|
||||
if [ -x "$(command -v claude)" ]; then
|
||||
echo "-- CLAUDE"
|
||||
claude --update
|
||||
echo "-- CLAUDE PLUGINS"
|
||||
claude plugin marketplace update
|
||||
# No pipe into the loop: update must keep the terminal as stdin for its
|
||||
# confirm prompt (bun's kqueue rejects a `< /dev/tty` redirect)
|
||||
plugins=$(claude plugin list --json \
|
||||
| python3 -c 'import json, sys; print(*(p["id"] for p in json.load(sys.stdin) if p["scope"] == "user"))')
|
||||
for plugin in $plugins; do
|
||||
claude plugin update --scope user "$plugin"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -x "$(command -v codex)" ]; then
|
||||
echo "-- CODEX"
|
||||
codex update
|
||||
echo "-- CODEX PLUGINS"
|
||||
codex plugin marketplace upgrade
|
||||
fi
|
||||
|
||||
# Skills installed via the skills CLI (shared by Claude, Codex, ...)
|
||||
if [ -f "$HOME/.agents/.skill-lock.json" ] && [ -x "$(command -v skills)" ]; then
|
||||
echo "-- SKILLS"
|
||||
skills update --global --yes
|
||||
fi
|
||||
|
||||
if [ -x "$(command -v pi)" ]; then
|
||||
|
||||
Reference in new issue
Block a user