diff options
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |