are you kidding me?  just keep the escape bits in the PS1 in bash_profile, not in shell script
keep pwd() in shell script with no color change