Changing the $HOME environment variable in terminal on mac 10.8

Solution 1:

In bash (the default shell of Terminal on 10.8) the syntax:

HOME=/your/path
export HOME