OSX fix for running emacs in window mode

shell environment variables should be copied over
read PS1 environment for a custom shell prompt