-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·62 lines (52 loc) · 1.79 KB
/
uninstall.sh
File metadata and controls
executable file
·62 lines (52 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
set -e
echo "🗑️ Uninstalling cc-notifier..."
echo
# Validate environment
if [ -z "$HOME" ]; then
echo "❌ HOME environment variable is not set"
exit 1
fi
# Check if cc-notifier is installed
echo "✅ Checking for existing installation..."
if [ ! -d "$HOME/.cc-notifier" ]; then
echo "⚠️ cc-notifier is not installed (no ~/.cc-notifier directory found)"
echo " Nothing to uninstall."
exit 0
fi
echo "📦 Found cc-notifier installation at ~/.cc-notifier/"
# Remove main installation directory
echo "📦 Removing installation directory..."
rm -rf "$HOME/.cc-notifier"
# Clean up session files if they exist
if [ -d "/tmp/cc_notifier" ]; then
echo "🧹 Cleaning up session files..."
rm -rf "/tmp/cc_notifier"
fi
echo "✅ Removed from ~/.cc-notifier/"
echo
echo "🎯 REQUIRED NEXT STEPS TO COMPLETE REMOVAL:"
echo
echo "1. 🔧 REMOVE CLAUDE CODE HOOKS (Required)"
echo " Edit ~/.claude/settings.json and remove the cc-notifier hooks"
echo
echo "2. 🔨 REMOVE ANY HAMMERSPOON CONFIGURATION"
echo
echo "3. 📦 OPTIONAL: Remove dependencies if not needed elsewhere"
echo " These may be used by other applications:"
echo " • brew uninstall terminal-notifier"
echo " • brew uninstall --cask hammerspoon"
echo
# Send success notification if terminal-notifier is available
if command -v terminal-notifier >/dev/null 2>&1; then
echo "📬 Sending success notification..."
terminal-notifier \
-title "cc-notifier Uninstalled Successfully!" \
-message "Check terminal for manual cleanup steps" \
-sound "Funk" \
-timeout 10
else
echo "📬 terminal-notifier not available, skipping notification"
fi
echo "✅ cc-notifier has been uninstalled!"
echo " Remember to remove the Claude Code hooks from ~/.claude/settings.json"