-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·123 lines (111 loc) · 2.8 KB
/
uninstall.sh
File metadata and controls
executable file
·123 lines (111 loc) · 2.8 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/usr/bin/env bash
set -e
echo "🧹 Starting uninstall process..."
# List of apps installed by brew formula
apps=(
tmux
zsh
starship
spotify_player
lazygit
neovim
lsd
lf
bat
ripgrep
zsh-syntax-highlighting
btop
fzf
fnm
uv
thefuck
zoxide
tlrc
sketchybar
borders
)
echo "🧹 Uninstalling brew formula apps..."
for app in "${apps[@]}"; do
if brew list | grep -q "^$app\$"; then
echo "🗑 Uninstalling $app..."
brew uninstall --ignore-dependencies --force "$app"
else
echo "⚠️ $app not installed, skipping"
fi
done
echo "🧹 Uninstalling aerospace from tap..."
if brew list | grep -q "^aerospace\$"; then
brew uninstall --ignore-dependencies --force aerospace || echo "⚠️ Failed to uninstall aerospace"
fi
echo "🧹 Uninstalling brew taps..."
brew untap nikitabobko/tap || echo "⚠️ Tap nikitabobko/tap not found or already untapped"
brew untap FelixKratz/formulae || echo "⚠️ Tap FelixKratz/formulae not found or already untapped"
# List of cask apps installed
cask_apps=(
wezterm
font-sketchybar-app-font
font-hack-nerd-font
mongodb-compass
amazon-q
gitkraken
notion
orbstack
postman
raycast
tableplus
)
echo "🧹 Uninstalling brew cask apps..."
for cask_app in "${cask_apps[@]}"; do
if brew list --cask | grep -q "^$cask_app\$"; then
echo "🗑 Uninstalling $cask_app..."
brew uninstall --cask --force "$cask_app"
else
echo "⚠️ $cask_app not installed, skipping"
fi
done
# Remove fonts installed via brew formula (font-sf-pro)
if brew list | grep -q "^font-sf-pro\$"; then
echo "🗑 Uninstalling font-sf-pro..."
brew uninstall --ignore-dependencies --force font-sf-pro
else
echo "⚠️ font-sf-pro not installed, skipping"
fi
# Remove dotfiles configs
configs=(
"$HOME/.config/spotify-player"
"$HOME/.config/nvim"
"$HOME/.local/share/nvim"
"$HOME/.cache/nvim"
"$HOME/.config/lsd"
"$HOME/.config/lf"
"$HOME/.config/bat"
"$HOME/.config/aerospace"
"$HOME/.config/sketchybar"
"$HOME/.config/tmux"
"$HOME/.tmux"
"$HOME/.config/starship.toml"
"$HOME/.config/starship"
"$HOME/.config/fish"
"$HOME/.zshrc"
"$HOME/.config/wezterm"
"$HOME/.wezterm.lua"
"$HOME/dotfiles"
)
echo "🧹 Removing dotfiles configs..."
for cfg in "${configs[@]}"; do
if [ -e "$cfg" ]; then
echo "🗑 Removing $cfg"
rm -rf "$cfg"
else
echo "⚠️ $cfg not found, skipping"
fi
done
echo "🧹 Uninstall TPM (tmux plugin manager)..."
if [ -d ~/.tmux/plugins/tpm ]; then
rm -rf ~/.tmux/plugins/tpm
echo "✅ TPM removed"
else
echo "⚠️ TPM not found"
fi
echo ""
echo "🎉 Uninstall complete! Your system should be clean now."