Skip to content

Instantly share code, notes, and snippets.

@nikolay-n
Last active January 30, 2022 12:15
Show Gist options
  • Save nikolay-n/72524e673ba55a3408eb51700ec18e7f to your computer and use it in GitHub Desktop.
Save nikolay-n/72524e673ba55a3408eb51700ec18e7f to your computer and use it in GitHub Desktop.
Useful macOS shell aliases
# 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