diff --git a/bashrc b/bashrc index 16ff5c54..ded8a4ac 100644 --- a/bashrc +++ b/bashrc @@ -842,6 +842,12 @@ function sysctl-undo-mikaela() { set +x } +# Add GitHub pull requests to fetched things via http://git.io/-C-0oQ +github-add-pulls() { + git config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*' + git config --add remote.upstream.fetch '+refs/pull/*/head:refs/remotes/upstream/-pr/*' +} + # .custom if [ -f ~/.custom ]; then source ~/.custom diff --git a/zshrc b/zshrc index 05cc7ea3..f25baba8 100644 --- a/zshrc +++ b/zshrc @@ -815,6 +815,11 @@ function sysctl-undo-mikaela() { set +x } +# Add GitHub pull requests to fetched things via http://git.io/-C-0oQ +github-add-pulls() { + git config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*' + git config --add remote.upstream.fetch '+refs/pull/*/head:refs/remotes/upstream/-pr/*' +} # Source files for miscannellious modifications.