Skip to content

Instantly share code, notes, and snippets.

View dhananjaykadam's full-sized avatar
🏠
Working from home

Dhananjay Kadam dhananjaykadam

🏠
Working from home
View GitHub Profile
@dhananjaykadam
dhananjaykadam / terminal-git-branch-name.md
Created August 21, 2020 08:15 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

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

# Git branch in prompt.

parse_git_branch() {