Skip to content

Instantly share code, notes, and snippets.

View chevinbrown's full-sized avatar
🦦

Kevin Brown chevinbrown

🦦
  • Charlotte, NC
View GitHub Profile
@chevinbrown
chevinbrown / gitprompt.sh
Created January 27, 2016 16:36
Git prompt for cygwin
# EDIT for Git
__git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
__git_branch_color="\[\033[36m\]"
__last_color="\[\033[00m\]"
export PS1="\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\] $__git_branch_color$__git_branch\n$__last_color\$"
~
@chevinbrown
chevinbrown / 0_reuse_code.js
Created March 8, 2014 23:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console