system PATH
On command
echo $PATH
are displayed these paths by default. Each path is separated by colon and specificaly these are stored in etc/paths file:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
add PATH
export PATH="/Applications/Blender/Blender.app/Contents/MacOS":"$PATH"
echo PATH="/Applications/Blender/Blender.app/Contents/MacOS":"\$PATH" >> ~/.profile
It creates a new line with PATH into .profile file.
... to be sure
If I'm right you should have listed Blender, Inkscape and CMake in this file to be able regenerate new blender icons and compile Blender. If you open hidden .profile file (located in home directory) via mac TextEdit or via Terminal's editor sudo nano ~/.profile
it should consist from this text:
PATH=/Applications/Blender/Blender.app/Contents/MacOS:$PATH
PATH=/Applications/Inkscape.app/Contents/MacOS:$PATH
PATH=/Applications/CMake.app/Contents/bin:$PATH
On echo $PATH
you should see now:
/Applications/CMake.app/Contents/bin:/Applications/Inkscape.app/Contents/MacOS:/Applications/Blender/blender.app/Contents/MacOS:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Note 1: After XQuartz installation (needed to run Inkscape) you can see on echo $PATH
also /opt/X11/bin
path that is located in etc/paths.d/40XQuartz file. So, if you close and open a new Shell (Terminal window) you should see these path on echo $PATH
command like this
/Applications/Blender/blender.app/Contents/MacOS:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Note 2: You can add PATH also by editing ".profile" file from Finder. Let "Show hidden files" with Cmd+Shift+. Go to Macintosh HD > Users > "youraccount" folder and open ".profile" file in TextEdit and copy paste
PATH=/Applications/Blender/blender.app/Contents/MacOS:$PATH
and save it. If you open a new Shell you can see the path on echo $PATH
command.
Note 3: I saw paths can be stored in other files like ".bash_profile" if any, but since I already created alias for blender, it make sence to me store also this PATH in one file. Also other app generated the path to this .profile file, so I hope it's correct :)
Note 4: path /Applications/Blender/blender.app/Contents/MacOS
works only in case your blender.app is in "Applications" directory. If you placed your app somewhere else edit the text acording to your path. You can get the path by drag&drop "MacOS" folder into Terminal window. To get such deep directory click on blender app icon with RMB and choose "Show package content".
Note 5: Be carefull with quotation marks. They has to be traight "abc" Pasting them from text editor they can be also 6-9 type, looks like angeled “abc”. These are not working!