-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·40 lines (33 loc) · 1.2 KB
/
uninstall.sh
File metadata and controls
executable file
·40 lines (33 loc) · 1.2 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
#!/usr/bin/env bash
set -euo pipefail
echo "🗑️ Uninstalling Claude Code Public Configuration"
# Remove Claude Code
rm -f ~/.local/bin/claude
rm -rf ~/.claude-code
# Remove public files
rm -f ~/.claude/CLAUDE.md
rm -f ~/.claude/statusline.sh
rm -f ~/.claude/switch-claude-config.sh
rm -rf ~/.claude/commands
rm -rf ~/.claude/settings-personal.json
rm -rf ~/.claude/marketplaces
rm -rf ~/.claude/plugins
rm -rf ~/.claude/skills
rm -rf ~/.claude/hooks
echo "🦀 Uninstalling RTK (Rust Token Killer)"
if command -v rtk &> /dev/null; then
rtk init -g --uninstall 2>/dev/null || true
fi
rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/rtk"
SHELL_RC="${ZDOTDIR:-$HOME}/.zshrc"
if grep -q "RTK_TELEMETRY_DISABLED" "${SHELL_RC}" 2>/dev/null; then
grep -v "RTK_TELEMETRY_DISABLED" "${SHELL_RC}" > "${SHELL_RC}.tmp" && mv "${SHELL_RC}.tmp" "${SHELL_RC}"
echo "ℹ️ Removed RTK_TELEMETRY_DISABLED from ${SHELL_RC}"
fi
if command -v brew &> /dev/null && brew list rtk 2>/dev/null | grep -q rtk; then
brew uninstall rtk || true
elif [ -f "${HOME}/.local/bin/rtk" ]; then
rm -f "${HOME}/.local/bin/rtk"
fi
echo "✅ Public configuration removed"
echo "ℹ️ Note: settings.json and profile files were not removed"