Skip to content

Instantly share code, notes, and snippets.

View kernelsmith's full-sized avatar
💭
I'm not entirely sure.

Josh kernelsmith

💭
I'm not entirely sure.
View GitHub Profile
@kernelsmith
kernelsmith / README.md
Last active August 29, 2015 14:16 — forked from farrelley/README.md
@kernelsmith
kernelsmith / README.md
Last active August 29, 2015 14:16 — forked from farrelley/README.md
@kernelsmith
kernelsmith / .gitconfig
Last active December 28, 2015 05:19 — forked from todb-r7/.gitconfig
git alias for pr-url to open a browser with a PR to the intended user and branch
[user]
uname = ks
[alias]
branch-current = rev-parse --abbrev-ref HEAD
# Usage: git pr-url HISNAME HISBRANCH
# Example: git pr-url rapid7 master
# Example: git pr-url OJ feature/cool_feature_that_also_fixes_bugs
pr-url =!"xdg-open https://github.com/$(git config user.uname)/$(basename $(git rev-parse --show-toplevel))/pull/new/$1:$2...$(git branch-current) #"
# OSX. Use whatever browser you use
#pr-url =!"open -a \"Google Chrome\" https://github.com/$(git config user.uname)/$(basename $(git rev-parse --show-toplevel))/pull/new/$1:$2...$(git branch-current) #"