I’m still getting to grips with this OS X malarkey, and my latest challenge was how to set the PATH environment variables.
I started out wanting to add some aliases for the
mysqladmin commands as I’ve just decided to have a bit of a play with django. On linux I used to edit my
.bashrc file to do this, but the version of bash on Mac OS X (10.5.2) doesn’t seem to support this. Hunting around I realised that I should just add the path to these commands to my
PATH environment variable, but again: not quite so simple.
I want these commands to be available to everyone, so it turns out you have to edit a file called
sudo vi /etc/paths
And that was it. Easy when you know how! Oh, and remember to run
vi as root using the