diff --git a/updates.d/70-claude.sh b/updates.d/70-claude.sh new file mode 100755 index 0000000..1143163 --- /dev/null +++ b/updates.d/70-claude.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +COREDESKTOP="$HOME/.local/share/coredesktop" + +# claude.sh has run if Claude Code is installed, ~/.local/bin is on PATH in +# .bashrc, and the notification settings file exists +if command -v claude &>/dev/null \ + && grep -qF 'export PATH="$HOME/.local/bin:$PATH"' ~/.bashrc 2>/dev/null \ + && [ -f "$HOME/.claude/settings.json" ]; then + echo "Claude Code already set up." +else + echo "Setting up Claude Code..." + bash "$COREDESKTOP/claude.sh" +fi