-
-
Save jaqque/017380dd3b5ae3766646 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: uninstall-fusion | |
remove() { | |
entry="$1" | |
if [[ ! -e "$entry" ]]; then | |
return | |
fi | |
printf 'Removing \e[34m%s\e[0m … ' "${entry/$HOME/~}" | |
sudo rm -rf "$entry" 2>&1 >> /tmp/uninstall-vmware.log | |
if [[ $? -eq 0 ]]; then | |
printf '\e[32mOK\e[0m\n' | |
else | |
printf '\e[31mFAILED\e[0m\n' | |
fi | |
} | |
remove "/Applications/VMware Fusion.app" | |
remove "/Library/Application Support/VMware Fusion" | |
remove "/Library/Application Support/VMware" | |
remove "/Library/Logs/VMware/" | |
remove "/Library/Preferences/VMware Fusion" | |
remove "/private/var/db/vmware" | |
remove "/private/var/root/Library/Logs/VMware" | |
remove "/private/var/root/Library/Preferences/VMware Fusion" | |
remove "/private/var/run/vmware" | |
remove "/private/var/run/VMware Fusion Services.lock" | |
remove "/private/var/run/VMware Fusion Services.sock" | |
remove "$HOME/Library/Application Support/VMware Fusion" | |
remove "$HOME/Library/Caches/com.vmware.fusion" | |
remove "$HOME/Library/Logs/VMware" | |
remove "$HOME/Library/Logs/VMware Fusion" | |
remove "$HOME/Library/Logs/VMware Graphics Service.log" | |
remove "$HOME/Library/Preferences/VMware Fusion" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist.lockfile" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusion.plist.lockfile" | |
remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist.lockfile" | |
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist" | |
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment