Skip to content

Instantly share code, notes, and snippets.

View JSpiner's full-sized avatar
:octocat:
loop { eat sleep code }

정성민 JSpiner

:octocat:
loop { eat sleep code }
View GitHub Profile
@JSpiner
JSpiner / show-git-branch-in-bash-prompt
Last active October 10, 2016 18:31 — forked from stuarteberg/show-git-branch-in-bash-prompt
Code for your .bashrc file. Show current git branch on bash shell prompt....with color! (This was copied and modified from similar code you can find out there on the 'tubes.)
# Colors for the prompt
blue="\033[0;34m"
white="\033[0;37m"
green="\033[0;32m"
magenta="\033[0;55m"
# Brackets needed around non-printable characters in PS1
ps1_blue='\['"$blue"'\]'
ps1_green='\['"$green"'\]'
ps1_white='\['"$white"'\]'