Thursday, January 25, 2007

ze environment is ze file to configure ze shell

Bad french aside, here are my notes for configuring the z-shell to find the Darwin Ports version of programs first.

~/Library/init/zsh

This path points to where the “environment” is set.

Edit this file and make sure that your /opt/local/bin folder comes first

prependPath PATH /usr/local/sbin
prependPath PATH /usr/local/bin
prependPath PATH ~/bin/powerpc-apple-darwin
prependPath PATH ~/bin
prependPath PATH /opt/local/bin

appendPath PATH /usr/local/mysql/bin
appendPath PATH /usr/bin
appendPath PATH /bin
appendPath PATH /usr/sbin
appendPath PATH /sbino
appendPath PATH /Developer/Tools

Note that prependPath and appendPath are functions defined earlier in the “environment” file.

No comments: