Skip to main content
2 of 2
added 35 characters in body
nohillside
  • 104.5k
  • 42
  • 222
  • 275

Both /etc and /usr are part of macOS and get mostly overwritten with each OS upgrade (with the exception of /usr/local). So you don‘t want to store your own content there.

The canonical place for user-provided code is /usr/local/bin, at least if you don‘t mind other users reading the shell script or running it. Otherwise (or to make it easier to update it) ~/.bin or similar is a good place.

nohillside
  • 104.5k
  • 42
  • 222
  • 275