Recently I posted about adding items to your $PATH variable within Terminal. Well, this post builds upon that with the popular application of Macports. If you want to be able to go ahead and use the ‘port’ command, or any command involving Macports, anywhere within Terminal without going to the Macports install location, then follow the instructions found in my post regarding this.Â The default location for Macports to install itself is “/opt/local”. (Reasoning for this can be found here .) So, once you add this install location to your $PATH variable, you should be all set to use the ‘port’ command anywhere.