Initial commit

This commit is contained in:
marcus.hinz
2026-07-09 09:21:43 +02:00
commit 92ec59e6e0
32 changed files with 457 additions and 0 deletions
Executable
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# kc-restore — spielt das mit kc-backup gesicherte Secret in den Keychain zurück.
# -U aktualisiert einen ggf. vorhandenen Eintrag statt zu scheitern.
# Usage: kc-restore [backupdatei]
set -euo pipefail
src=${1:-$HOME/.ssh/claude-keychain-backup.json}
security add-generic-password -U -s "Claude Code-credentials" -a "$USER" -w "$(cat "$src")"
echo "Keychain-Eintrag aus $src wiederhergestellt."