Add Git Branch Name and Status to Terminal Prompt (zsh) Install Open ~/.zshrc in your favorite editor and add the following content to the bottom. git_status() { # Early return if not in a git repository