OSX fix for running emacs in window mode

shell environment variables should be copied over
read PS1 environment for a custom shell prompt
Merge pull request #2 from anjusuryawanshi/master

fix for OSX window mode - accepted