Skip to content

Instantly share code, notes, and snippets.

Daigo Fujiwara daigofuji

Block or report user

Report or block daigofuji

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daigofuji
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)
else
MAGENTA=$(tput setaf 5)
You can’t perform that action at this time.