Skip to content

Instantly share code, notes, and snippets.

View majidgolshadi's full-sized avatar
🌱

Majid Golshadi majidgolshadi

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