Skip to content

Instantly share code, notes, and snippets.

View ajmalnabil's full-sized avatar
💭
Finding time to learn back programming

Nabil ajmalnabil

💭
Finding time to learn back programming
  • Malaysia
View GitHub Profile
@ajmalnabil
ajmalnabil / terminal-git-branch-name.md
Created December 19, 2017 07:55 — 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() {