This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.sh
executable file
·92 lines (82 loc) · 2.19 KB
/
uninstall.sh
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
#!/bin/bash
set -e
__info() {
cat <<-_EOF_
Dear you ❤️
Remove Manually directory dotfiles
rm -rf ~/.dotfiles
_EOF_
}
removepath=(
~/.local/share/desktop-image-switcher
~/.local/share/pipe-viewer-main
~/.local/share/brightness
~/.local/share/nvim
~/.config
~/.zprofile
~/.utils
~/.code
~/.notes
~/.docker
~/ebook
~/pix
~/Library/Fonts
/Applications/Folx.app
/Applications/Figma.app
/Applications/kitty.app
/Applications/qView.app
/Applications/AltTab.app
/Applications/zoom.us.app
/Applications/Firefox.app
/Applications/Discord.app
/Applications/Whatsapp.app
/Applications/AppCleaner.app
/Applications/Brave\ Browser.app
/Applications/SF\ Symbols.app
/Applications/Karabiner-Elements.app
/Applications/Karabiner-EventViewer.app
/usr/local/bin/nvim
/usr/local/bin/perlsh
/usr/local/bin/bash
/usr/local/bin/sed
/usr/local/bin/grep
/usr/local/bin/clean
/usr/local/bin/dswall
/usr/local/bin/getwall
/usr/local/bin/osx
/usr/local/bin/preview
/usr/local/bin/package
/usr/local/bin/search
/usr/local/bin/brightness
/usr/local/bin/pipe-viewer
/usr/local/bin/desktop-image-switcher
/usr/local/bin/tmux-chtsh
/usr/local/bin/tmux-sessionizer
/usr/local/bin/bloatednvmstupidshit
/usr/local/share/zsh
/usr/local/share/man
/opt/homebrew
)
if [ "$1" = "-go" ]; then
/usr/bin/caffeinate -d &
echo "Clear Directory Symlinks 🌊..."
sudo rm -rf -v "${removepath[@]}"
echo "Uninstalling Package 🌊..."
brew list --cask | xargs brew uninstall --force --ignore-dependencies
brew list | xargs brew uninstall --force --ignore-dependencies
echo "Uninstall Package Sucessfully 🌟..."
echo "Uninstalling Homebrew 🌊..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
echo "Uninstall Homebrew Sucessfully 🌟..."
read -r -p "Remove direcotry /opt/homebrew sucessfuly 🌟..." -t 2 | tr '%' '\n'
sleep 2 && kill -9 "$(ps -ax -o pid,comm | sort | grep caffeinate | awk 'NR==1{print $1}')" 2>/dev/null
__info
echo "Process Complete 🌟..."
elif [ -n "$1" ]; then
echo "uninstall.sh failed 🙅"
echo "uninstall.sh -go for started 🧘"
exit
else
echo "uninstall.sh failed 🙅"
echo "uninstall.sh -go for started 🧘"
fi