Last active
January 30, 2022 12:15
-
-
Save nikolay-n/72524e673ba55a3408eb51700ec18e7f to your computer and use it in GitHub Desktop.
Useful macOS shell aliases
This file contains 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
# just include this file in ~/.bash_profile or ~/.zprofile | |
# . ~/.bash_aliases | |
# displays codesign entitlements, requires jq for json syntax highlighting (brew install jq) | |
# example: ents /usr/libexec/sandboxd | |
alias ents='ents_f(){ codesign -d --entitlements :- "$1" 2>/dev/null | plutil -convert json -o - - | jq .; }; ents_f' | |
# removes quarantine flag recursively | |
# example: qr ~/Downloads/some_file_or_dir | |
alias qr='xattr -r -d com.apple.quarantine' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment