Created
September 17, 2023 08:17
Revisions
-
tkafka created this gist
Sep 17, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/bin/zsh -f PATH=/bin bin="${HOME}/.Trash/$(date -u +%Y-%m-%dT%H-%M-%SZ)" if (( ${?} > 0 )); then exit 1 fi mkdir -p "${bin}/Library/"{'Application Support',Caches,Containers,Preferences} mv "${HOME}/Library/Application Support/AddressBook" "${bin}/Library/Application Support" 2>/dev/null mv "${HOME}/Library/Caches/com.apple.AddressBookSourceSync" "${bin}/Library/Caches" 2>/dev/null mv "${HOME}/Library/Containers/com.apple.AddressBook" "${HOME}/Library/Containers/com.apple.AddressBook."* "${HOME}/Library/Containers/com.apple.ContactsAgent" "${HOME}/Library/Containers/com.apple.ContactsUI."* "${bin}/Library/Containers" 2>/dev/null mv "${HOME}/Library/Preferences/com.apple.AddressBook.plist" "${bin}/Library/Preferences" 2>/dev/null