I'm a Mac beginner (using Catalina). So I downloaded nim (extracted into /opt/nim).
When I run any nim executable (nim, nimble, nimgrep etc), MacOS will give me this complain: "macos cannot verify the developer of xxxx. Are you sure you want to open it?"
So for each executable, I have to allow it via from System Preference -> Security & Privacy. I wonder if there's a much shorter way to do it?
This does look much shorter than going through System Preferences: sudo spctl --add /opt/nim/bin/nimgrep
from https://osxdaily.com/2015/07/15/add-remove-gatekeeper-app-command-line-mac-os-x/
sudo xattr -c -r Nim
replace Nim with the directory you keep your downloaded binaries.