Avoid showing branch name on prompt in your home

Apply for OS X and Linux