MacOS – How to configure an .osx file

macos

I have found the following repository on GitHub…

https://github.com/mathiasbynens/dotfiles/blob/master/.osx

…that has some useful environmental settings I would like to adopt. It appears they go into a .osx file. Where is this file located? Also, when does it 'run'? Do I have to reboot the machine to get the settings in this to be recognized?

Best Answer

That looks like a shell script that is missing the shebang at the top of the file.

It could be that it is intended to be copied into an existing script to provide OS X-specific functionality so the main script can be portable (I'd expect there to be dotfiles for other operating systems, as well.)

On the other hand, it could be intended as a file of ideas and you pick the ones you want and paste them into your .bashrc or .bash_profile.