Skip to content

Instantly share code, notes, and snippets.

View Ritesh007's full-sized avatar
🎯
Focusing

Ritesh Kumar Reddy Kuchukulla Ritesh007

🎯
Focusing
View GitHub Profile
@Ritesh007
Ritesh007 / .bash_profile
Created September 28, 2022 18:59
Bash profile to display current git branch name in terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "

Keybase proof

I hereby claim:

To claim this, I am signing this object: