Add Git Branch Name to Terminal Prompt (Mac) Open ~/.bash_profile in your favorite editor and add the following content to the bottom. # Git branch in prompt. parse_git_branch() {