Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh) Updated for MacOS Big Sur | Monterey | Ventura Install Open ~/.zshrc in your favorite editor and add the following content to the bottom. function parse_git_branch() {