This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Found this here: http://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac/ | |
#Add this to your .bash_profile for Mac, haven't tested on Linux but it would go in .bashrrc there | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (angular) { | |
'use strict'; | |
/** | |
* @ngdoc overview | |
* @name angularLockerPolyfill | |
* @description Holds the decorator that overrides angular-locker | |
*/ | |
angular.module('angularLockerPolyfill', [ | |
'angular-locker' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#go to the current working directory | |
pwd | | |
while CWD= read -r line; do | |
cd "$line" | |
done | |
#designate local branches to skip | |
SKIPPEDBRANCHES="master develop" |