Skip to content

Instantly share code, notes, and snippets.


Daigo Fujiwara daigofuji

View GitHub Profile
daigofuji / .bash_git
Created Mar 28, 2016 — forked from MattSurabian/.bash_git
This can be appended to .bash_profile it will allow the prompt to display the current branch and branch-status
View .bash_git
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
MAGENTA=$(tput setaf 9)
ORANGE=$(tput setaf 172)
GREEN=$(tput setaf 190)
PURPLE=$(tput setaf 141)
WHITE=$(tput setaf 256)
MAGENTA=$(tput setaf 5)
You can’t perform that action at this time.