Skip to content

Instantly share code, notes, and snippets.

@andrewjtait
andrewjtait / gist:9114245e92b84d69aa43
Last active August 29, 2015 14:08
GitHub Bash Function
function github {
branch="$(git rev-parse --abbrev-ref HEAD)"
url="$(git config --get remote.origin.url)"
url=${url/git@github.com:/http://github.com/}
url=${url/.git/}
if [[ $1 =~ "compare" ]]; then action="compare"
elif [[ $1 =~ "pr" ]]; then action="pull"
else action="tree"; fi
@andrewjtait
andrewjtait / Arrow-Sass-Mixin.markdown
Last active December 25, 2015 02:29
Arrow Sass Mixin