Skip to content

Instantly share code, notes, and snippets.

View cjlinton83's full-sized avatar

Chris Linton cjlinton83

  • Baton Rouge, Louisiana
View GitHub Profile
@cjlinton83
cjlinton83 / terminal-git-branch-name.md
Created May 26, 2018 14:32 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {