Skip to content

Instantly share code, notes, and snippets.

/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn ([email protected])
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
@brycesch
brycesch / .bash_profile
Last active December 21, 2015 09:29 — forked from ehlertij/.bash_profile
# Set terminal window name to current git repo (and branch) or current directory
git-repo() {
git remote -v | grep '(fetch)' | grep -o "\/[a-z,A-Z,\_,\-]*\." | tail -1 | cut -c 2- | grep -o "[a-z,A-Z,\_,\-]*"
}
git-branch() {
git branch | grep \* | cut -c 3-
}
git-term() {