-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·67 lines (59 loc) · 2.13 KB
/
Copy pathuninstall.sh
File metadata and controls
executable file
·67 lines (59 loc) · 2.13 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
63
64
65
66
67
#!/bin/bash
# ==========================================================================
# Library Insight - Uninstaller Script
# ==========================================================================
# This script removes the global library-insight binary symlink, the
# installation directory ($HOME/.library-insight), and all registered AI skills.
#
# Usage:
# curl -fsSL https://raw.githubusercontent.com/Coding-Meet/Library-Insight/main/uninstall.sh | bash
# or
# ./uninstall.sh
# ==========================================================================
set -e
INSTALL_DIR="$HOME/.library-insight"
SYMLINK="/usr/local/bin/library-insight"
echo "=================================================="
echo " Uninstalling Library Insight..."
echo "=================================================="
# 1. Remove global symlink
if [ -L "$SYMLINK" ] || [ -f "$SYMLINK" ]; then
echo "Removing global symlink at $SYMLINK..."
if [ -w "/usr/local/bin" ]; then
rm -f "$SYMLINK"
else
sudo rm -f "$SYMLINK"
fi
echo " -> Symlink removed."
fi
# 2. Remove installation directory and caches
if [ -d "$INSTALL_DIR" ]; then
echo "Removing installation directory ($INSTALL_DIR)..."
rm -rf "$INSTALL_DIR"
echo " -> Installation directory removed."
fi
# 3. Remove global AI Agent Skill registrations
echo "Removing registered global AI Agent Skills..."
SKILL_PATHS=(
"$HOME/.claude/skills/library-insight"
"$HOME/.agents/skills/library-insight"
"$HOME/.codex/skills/library-insight"
"$HOME/.cursor/skills/library-insight"
"$HOME/.gemini/skills/library-insight"
"$HOME/.gemini/config/skills/library-insight"
"$HOME/.copilot/skills/library-insight"
"$HOME/.junie/skills/library-insight"
)
REMOVED_SKILLS=0
for path in "${SKILL_PATHS[@]}"; do
if [ -d "$path" ]; then
rm -rf "$path"
echo " -> Removed AI Skill at: $path"
REMOVED_SKILLS=$((REMOVED_SKILLS + 1))
fi
done
echo ""
echo "=================================================="
echo " SUCCESS: Library Insight has been completely uninstalled!"
echo "=================================================="
echo ""