Skip to content

Instantly share code, notes, and snippets.

Avatar
🌱

Majid Golshadi majidgolshadi

🌱
View GitHub Profile
@majidgolshadi
majidgolshadi / bashrc
Created Jul 27, 2016
Show git branch in address
View bashrc
git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
...
if ${use_color} ; then
...