Skip to content

Instantly share code, notes, and snippets.

View Greenheart's full-sized avatar
🌍
Let's co-create a future that is regenerative and distributive by design

Samuel Plumppu Greenheart

🌍
Let's co-create a future that is regenerative and distributive by design
View GitHub Profile
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active September 22, 2024 17:57
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() {