aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/.functions b/.functions
index 8aa20c8..a544dfd 100644
--- a/.functions
+++ b/.functions
@@ -76,4 +76,11 @@ function unidecode() {
function codepoint() {
perl -e "use utf8; print sprintf('U+%04X', ord(\"$@\"))"
echo # newline
+}
+
+# Manually remove a downloaded app or file from the quarantine
+function unquarantine() {
+ for attribute in com.apple.metadata:kMDItemDownloadedDate com.apple.metadata:kMDItemWhereFroms com.apple.quarantine; do
+ xattr -r -d "$attribute" "$@"
+ done
} \ No newline at end of file