Skip to content

Home Information - Your home, your data, organized.

Python

Added claude init wrapper script.

Anthony Cassandra3d2606106c85
diff --git a/init-claude.sh b/init-claude.sh
new file mode 100755
index 00000000..a8da5956
--- /dev/null
+++ b/init-claude.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+cd ~/proj/hi
+. ./init-env-dev.sh
+
+# Check GitHub login status and re-auth if necessary.
+# gh auth login
+if ! gh auth status --hostname "$host" >/dev/null 2>&1; then
+ if [[ -n "${GH_TOKEN:-${GITHUB_TOKEN:-}}" ]]; then
+ printf '%s' "${GH_TOKEN:-$GITHUB_TOKEN}" | gh auth login --hostname "$host" --with-token
+ else
+ # interactive web login
+ gh auth login --hostname "$host" --web
+ fi
+else
+ echo "✓ GitHub Authorization"
+fi
+
+##claude