15 lines
470 B
Bash
Executable File
15 lines
470 B
Bash
Executable File
#!/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
|