diff --git a/.functions b/.functions index 8aa20c8be8..a544dfd912 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