Skip to content

Instantly share code, notes, and snippets.

View jameshorine's full-sized avatar

James Patrick Horine jameshorine

View GitHub Profile
@jameshorine
jameshorine / terminal-git-branch-name.md
Created December 14, 2017 15:27 — 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() {